lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202512120915.PyiiMOEa-lkp@intel.com>
Date: Fri, 12 Dec 2025 07:18:46 +0800
From: kernel test robot <lkp@...el.com>
To: Tianyang Zhang <zhangtianyang@...ngson.cn>, chenhuacai@...nel.org,
	kernel@...0n.name, corbet@....net, alexs@...nel.org,
	si.yanteng@...ux.dev, tglx@...utronix.de, jiaxun.yang@...goat.com,
	peterz@...radead.org, wangliupu@...ngson.cn, lvjianmin@...ngson.cn,
	maobibo@...ngson.cn, siyanteng@...oftware.com.cn,
	gaosong@...ngson.cn, yangtiezhu@...ngson.cn
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
	loongarch@...ts.linux.dev, linux-doc@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	Tianyang Zhang <zhangtianyang@...ngson.cn>
Subject: Re: [PATCH] irqchip/irq-loongarch-ir:Add Redirect irqchip support

Hi Tianyang,

kernel test robot noticed the following build errors:

[auto build test ERROR on tip/irq/core]
[also build test ERROR on linus/master v6.18 next-20251211]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Tianyang-Zhang/irqchip-irq-loongarch-ir-Add-Redirect-irqchip-support/20251211-172347
base:   tip/irq/core
patch link:    https://lore.kernel.org/r/20251211091910.5140-3-zhangtianyang%40loongson.cn
patch subject: [PATCH] irqchip/irq-loongarch-ir:Add Redirect irqchip support
config: loongarch-allnoconfig (https://download.01.org/0day-ci/archive/20251212/202512120915.PyiiMOEa-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 6ec8c4351cfc1d0627d1633b02ea787bd29c77d8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251212/202512120915.PyiiMOEa-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512120915.PyiiMOEa-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   drivers/irqchip/irq-loongarch-avec.c:416:6: error: use of undeclared identifier 'cpu_has_redirectint'
     416 |         if (cpu_has_redirectint)
         |             ^~~~~~~~~~~~~~~~~~~
>> drivers/irqchip/irq-loongarch-avec.c:417:10: error: call to undeclared function 'redirect_acpi_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     417 |                 return redirect_acpi_init(loongarch_avec.domain);
         |                        ^
   2 errors generated.
--
>> drivers/irqchip/irq-loongarch-ir.c:141:39: error: use of undeclared identifier 'LOONGARCH_IOCSR_REDIRECT_CQH'
     141 |         u32 head = redirect_read_reg32(node, LOONGARCH_IOCSR_REDIRECT_CQH);
         |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/irqchip/irq-loongarch-ir.c:143:36: error: use of undeclared identifier 'LOONGARCH_IOCSR_REDIRECT_CQT'
     143 |         *tail = redirect_read_reg32(node, LOONGARCH_IOCSR_REDIRECT_CQT);
         |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/irqchip/irq-loongarch-ir.c:161:9: error: use of undeclared identifier 'LOONGARCH_IOCSR_REDIRECT_CQT'
     161 |                              LOONGARCH_IOCSR_REDIRECT_CQT);
         |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/irqchip/irq-loongarch-ir.c:235:28: error: incomplete definition of type 'struct avecintc_data'
     235 |         item->gpid->irqnum = adata->vec;
         |                              ~~~~~^
   drivers/irqchip/irq-loongarch-ir.c:187:22: note: forward declaration of 'struct avecintc_data'
     187 | static inline struct avecintc_data *irq_data_get_avec_data(struct irq_data *data)
         |                      ^
   drivers/irqchip/irq-loongarch-ir.c:236:25: error: incomplete definition of type 'struct avecintc_data'
     236 |         item->gpid->dst = adata->cpu;
         |                           ~~~~~^
   drivers/irqchip/irq-loongarch-ir.c:187:22: note: forward declaration of 'struct avecintc_data'
     187 | static inline struct avecintc_data *irq_data_get_avec_data(struct irq_data *data)
         |                      ^
>> drivers/irqchip/irq-loongarch-ir.c:259:2: error: call to undeclared function 'avecintc_sync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     259 |         avecintc_sync(adata);
         |         ^
>> drivers/irqchip/irq-loongarch-ir.c:415:53: error: use of undeclared identifier 'LOONGARCH_IOCSR_REDIRECT_CFG'
     415 |         redirect_write_reg64(irde->node, CFG_DISABLE_IDLE, LOONGARCH_IOCSR_REDIRECT_CFG);
         |                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/irqchip/irq-loongarch-ir.c:416:64: error: use of undeclared identifier 'LOONGARCH_IOCSR_REDIRECT_TBR'
     416 |         redirect_write_reg64(irde->node, __pa(irde->ird_table.table), LOONGARCH_IOCSR_REDIRECT_TBR);
         |                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/irqchip/irq-loongarch-ir.c:417:38: error: use of undeclared identifier 'LOONGARCH_IOCSR_REDIRECT_CQH'
     417 |         redirect_write_reg32(irde->node, 0, LOONGARCH_IOCSR_REDIRECT_CQH);
         |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/irqchip/irq-loongarch-ir.c:418:38: error: use of undeclared identifier 'LOONGARCH_IOCSR_REDIRECT_CQT'
     418 |         redirect_write_reg32(irde->node, 0, LOONGARCH_IOCSR_REDIRECT_CQT);
         |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/irqchip/irq-loongarch-ir.c:420:24: error: use of undeclared identifier 'LOONGARCH_IOCSR_REDIRECT_CQB'
     420 |                              CQB_SIZE_MASK, LOONGARCH_IOCSR_REDIRECT_CQB);
         |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/irqchip/irq-loongarch-ir.c:475:46: error: use of undeclared identifier 'AVEC_MSG_OFFSET'
     475 |         msi_base_addr = pchmsi_entry->msg_address - AVEC_MSG_OFFSET;
         |                                                     ^~~~~~~~~~~~~~~
>> drivers/irqchip/irq-loongarch-ir.c:485:12: warning: no previous prototype for function 'redirect_acpi_init' [-Wmissing-prototypes]
     485 | int __init redirect_acpi_init(struct irq_domain *parent)
         |            ^
   drivers/irqchip/irq-loongarch-ir.c:485:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     485 | int __init redirect_acpi_init(struct irq_domain *parent)
         | ^
         | static 
   1 warning and 12 errors generated.


vim +/redirect_acpi_init +417 drivers/irqchip/irq-loongarch-avec.c

   413	
   414	static inline int __init acpi_cascade_irqdomain_init(void)
   415	{
   416		if (cpu_has_redirectint)
 > 417			return redirect_acpi_init(loongarch_avec.domain);
   418	
   419		return acpi_table_parse_madt(ACPI_MADT_TYPE_MSI_PIC, pch_msi_parse_madt, 1);
   420	}
   421	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ