[xlnx:master 11481/12425] drivers/irqchip/irq-xilinx-intc.c:175:10: error: implicit declaration of function 'handle_domain_irq'
kernel test robot
lkp at intel.com
Wed Sep 1 17:11:26 PDT 2021
tree: https://github.com/Xilinx/linux-xlnx master
head: 52495976d054651fbf88cb12e08c57bf8d0ad781
commit: fa9735c129adcf18622d9c279332d7d43918f8eb [11481/12425] irqchip: xilinx: Use handle_domain_irq()
config: powerpc-randconfig-r022-20210831 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 4b1fde8a2b681dad2ce0c082a5d6422caa06b0bc)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://github.com/Xilinx/linux-xlnx/commit/fa9735c129adcf18622d9c279332d7d43918f8eb
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx master
git checkout fa9735c129adcf18622d9c279332d7d43918f8eb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/irqchip/irq-xilinx-intc.c:12:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:15:
In file included from include/linux/bitops.h:29:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:309:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
drivers/irqchip/irq-xilinx-intc.c:173:17: error: no member named 'read_fn' in 'struct xintc_irq_chip'
hwirq = irqc->read_fn(irqc->base + IVR);
~~~~ ^
>> drivers/irqchip/irq-xilinx-intc.c:175:10: error: implicit declaration of function 'handle_domain_irq' [-Werror,-Wimplicit-function-declaration]
ret = handle_domain_irq(irqc->root_domain, hwirq, regs);
^
drivers/irqchip/irq-xilinx-intc.c:192:2: error: use of undeclared identifier 'ret'
ret = of_property_read_u32(intc, "cpu-id", &cpu_id);
^
drivers/irqchip/irq-xilinx-intc.c:193:6: error: use of undeclared identifier 'ret'
if (ret < 0)
^
drivers/irqchip/irq-xilinx-intc.c:213:2: error: use of undeclared identifier 'ret'
ret = of_property_read_u32(intc, "xlnx,num-intr-inputs", &irqc->nr_irq);
^
drivers/irqchip/irq-xilinx-intc.c:214:6: error: use of undeclared identifier 'ret'
if (ret < 0) {
^
drivers/irqchip/irq-xilinx-intc.c:219:2: error: use of undeclared identifier 'ret'
ret = of_property_read_u32(intc, "xlnx,kind-of-intr", &irqc->intr_mask);
^
drivers/irqchip/irq-xilinx-intc.c:220:6: error: use of undeclared identifier 'ret'
if (ret < 0) {
^
drivers/irqchip/irq-xilinx-intc.c:252:3: error: use of undeclared identifier 'ret'
ret = -EINVAL;
^
drivers/irqchip/irq-xilinx-intc.c:257:3: error: use of undeclared identifier 'irq'; did you mean 'irqc'?
irq = irq_of_parse_and_map(intc, 0);
^~~
irqc
drivers/irqchip/irq-xilinx-intc.c:188:25: note: 'irqc' declared here
struct xintc_irq_chip *irqc;
^
drivers/irqchip/irq-xilinx-intc.c:257:7: warning: incompatible integer to pointer conversion assigning to 'struct xintc_irq_chip *' from 'unsigned int' [-Wint-conversion]
irq = irq_of_parse_and_map(intc, 0);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/irqchip/irq-xilinx-intc.c:258:7: error: use of undeclared identifier 'irq'; did you mean 'irqc'?
if (irq) {
^~~
irqc
drivers/irqchip/irq-xilinx-intc.c:188:25: note: 'irqc' declared here
struct xintc_irq_chip *irqc;
^
drivers/irqchip/irq-xilinx-intc.c:259:37: error: use of undeclared identifier 'irq'; did you mean 'irqc'?
irq_set_chained_handler_and_data(irq,
^~~
irqc
drivers/irqchip/irq-xilinx-intc.c:188:25: note: 'irqc' declared here
struct xintc_irq_chip *irqc;
^
drivers/irqchip/irq-xilinx-intc.c:264:4: error: use of undeclared identifier 'ret'
ret = -EINVAL;
^
drivers/irqchip/irq-xilinx-intc.c:278:9: error: use of undeclared identifier 'ret'
return ret;
^
2 warnings and 14 errors generated.
vim +/handle_domain_irq +175 drivers/irqchip/irq-xilinx-intc.c
165
166 static void xil_intc_handle_irq(struct pt_regs *regs)
167 {
168 int ret;
169 unsigned int hwirq, cpu_id = smp_processor_id();
170 struct xintc_irq_chip *irqc = per_cpu_ptr(&primary_intc, cpu_id);
171
172 do {
173 hwirq = irqc->read_fn(irqc->base + IVR);
174 if (hwirq != -1U) {
> 175 ret = handle_domain_irq(irqc->root_domain, hwirq, regs);
176 WARN_ONCE(ret, "cpu %d: Unhandled HWIRQ %d\n",
177 cpu_id, hwirq);
178 continue;
179 }
180
181 break;
182 } while (1);
183 }
184
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 38073 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210902/a1729d95/attachment-0001.gz>
More information about the linux-arm-kernel
mailing list