Subject: [xlnx:master 118/158] drivers/irqchip/irq-xilinx-intc.c:170:10: error: implicit declaration of function 'handle_domain_irq'; did you mean 'handle_bad_irq'?

From: kbuild test robot <[email-masked]>
Date: Thu, 12 Mar 2020 14:45:10 +0800

tree:   https://github.com/Xilinx/linux-xlnx master
head:   6d1ffa89fc67781a31f8119d6bf3748ef23bdf9a
commit: c70cdd6eff0dd4c628294a8cba30a54c602e6b86 [118/158] irqchip: xilinx: Use handle_domain_irq()
config: i386-randconfig-f003-20200312 (attached as .config)
compiler: gcc-7 (Debian 7.5.0-5) 7.5.0
reproduce:
        git checkout c70cdd6eff0dd4c628294a8cba30a54c602e6b86
        # save the attached .config to linux build tree
        make ARCH=i386 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <[email-masked]>

All errors (new ones prefixed by >>):

   drivers/irqchip/irq-xilinx-intc.c: In function 'xil_intc_handle_irq':
>> drivers/irqchip/irq-xilinx-intc.c:170:10: error: implicit declaration of function 'handle_domain_irq'; did you mean 'handle_bad_irq'? [-Werror=implicit-function-declaration]
       ret = handle_domain_irq(irqc->root_domain, hwirq, regs);
             ^~~~~~~~~~~~~~~~~
             handle_bad_irq
   drivers/irqchip/irq-xilinx-intc.c: In function 'xilinx_intc_of_init':
   drivers/irqchip/irq-xilinx-intc.c:280:3: error: implicit declaration of function 'set_handle_irq'; did you mean 'handle_irq'? [-Werror=implicit-function-declaration]
      set_handle_irq(xil_intc_handle_irq);
      ^~~~~~~~~~~~~~
      handle_irq
   cc1: some warnings being treated as errors

vim +170 drivers/irqchip/irq-xilinx-intc.c

   160	
   161	static void xil_intc_handle_irq(struct pt_regs *regs)
   162	{
   163		int ret;
   164		unsigned int hwirq, cpu_id = smp_processor_id();
   165		struct xintc_irq_chip *irqc = per_cpu_ptr(&primary_intc, cpu_id);
   166	
   167		do {
   168			hwirq = irqc->read_fn(irqc->base + IVR);
   169			if (hwirq != -1U) {
 > 170				ret = handle_domain_irq(irqc->root_domain, hwirq, regs);
   171				WARN_ONCE(ret, "cpu %d: Unhandled HWIRQ %d\n",
   172					  cpu_id, hwirq);
   173				continue;
   174			}
   175	
   176			break;
   177		} while (1);
   178	}
   179	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email-masked]
_______________________________________________
linux-arm-kernel mailing list
[email-masked]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel