Skip to contentSkip to conversation

linux-next: build failure after merge of the irqchip tree

DISCUSSION Stephen Rothwell 2 participants 4 messages Mar 23, 2020 – Mar 26, 2020 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the irqchip tree, today's linux-next build (powerpc ppc44x_defconfig) failed like this:

drivers/irqchip/irq-xilinx-intc.c: In function 'xil_intc_handle_irq':
drivers/irqchip/irq-xilinx-intc.c:176:10: error: implicit declaration of function 'handle_domain_irq'; did you mean 'handle_bad_irq'? [-Werror=implicit-function-declaration]

  176 |    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:253:3: error: implicit declaration of function 'set_handle_irq'; did you mean 'generic_handle_irq'? [-Werror=implicit-function-declaration]
  253 |   set_handle_irq(xil_intc_handle_irq);
      |   ^~~~~~~~~~~~~~
      |   generic_handle_irq

Caused by commit

a0789993bf82 ("irqchip/xilinx: Enable generic irq multi handler")

I have reverted that commit (and commit

9c2d4f525c00 ("irqchip/xilinx: Do not call irq_set_default_host()")

that conflicted with the other revert).

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi Stephen,

Quoted 18 lines · Stephen Rothwell

Hi all,

After merging the irqchip tree, today's linux-next build (powerpc ppc44x_defconfig) failed like this:

drivers/irqchip/irq-xilinx-intc.c: In function 'xil_intc_handle_irq':
drivers/irqchip/irq-xilinx-intc.c:176:10: error: implicit declaration of function 'handle_domain_irq'; did you mean 'handle_bad_irq'? [-Werror=implicit-function-declaration]

  176 |    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:253:3: error: implicit declaration of function 'set_handle_irq'; did you mean 'generic_handle_irq'? [-Werror=implicit-function-declaration]
  253 |   set_handle_irq(xil_intc_handle_irq);
      |   ^~~~~~~~~~~~~~
      |   generic_handle_irq

Caused by commit

Quoted 8 lines

a0789993bf82 ("irqchip/xilinx: Enable generic irq multi handler")

I have reverted that commit (and commit

9c2d4f525c00 ("irqchip/xilinx: Do not call irq_set_default_host()")

that conflicted with the other revert).

thanks for reporting this.

Marc: I completely forget about this wiring for very ancient platform. AFAIK Xilinx is not testing this platform for years and would likely the best to remove support for it completely.
The second option is to get xintc_get_irq() back with note about powerpc because it won't be that simple change all PPC platform to generic domain irq handler.
Any other suggestion?

Thanks,
Michal

#2 lore raw
In reply to Stephen Rothwell

Hi all,

Quoted 17 lines · On Mon, 23 Mar 2020 17:59:46 +1100 Stephen Rothwell <[email protected]>…

After merging the irqchip tree, today's linux-next build (powerpc ppc44x_defconfig) failed like this:

drivers/irqchip/irq-xilinx-intc.c: In function 'xil_intc_handle_irq':
drivers/irqchip/irq-xilinx-intc.c:176:10: error: implicit declaration of function 'handle_domain_irq'; did you mean 'handle_bad_irq'? [-Werror=implicit-function-declaration]

  176 |    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:253:3: error: implicit declaration of function 'set_handle_irq'; did you mean 'generic_handle_irq'? [-Werror=implicit-function-declaration]
  253 |   set_handle_irq(xil_intc_handle_irq);
      |   ^~~~~~~~~~~~~~
      |   generic_handle_irq

Caused by commit

Quoted 7 lines

a0789993bf82 ("irqchip/xilinx: Enable generic irq multi handler")

I have reverted that commit (and commit

9c2d4f525c00 ("irqchip/xilinx: Do not call irq_set_default_host()")

that conflicted with the other revert).

I am still getting these errors.

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw

Hi Stephen,

Quoted 22 lines · Stephen Rothwell

Hi all,

Quoted 19 lines · On Mon, 23 Mar 2020 17:59:46 +1100 Stephen Rothwell <[email protected]>…

After merging the irqchip tree, today's linux-next build (powerpc ppc44x_defconfig) failed like this:

drivers/irqchip/irq-xilinx-intc.c: In function 'xil_intc_handle_irq':
drivers/irqchip/irq-xilinx-intc.c:176:10: error: implicit declaration of function 'handle_domain_irq'; did you mean 'handle_bad_irq'? [-Werror=implicit-function-declaration]

  176 |    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:253:3: error: implicit declaration of function 'set_handle_irq'; did you mean 'generic_handle_irq'? [-Werror=implicit-function-declaration]
  253 |   set_handle_irq(xil_intc_handle_irq);
      |   ^~~~~~~~~~~~~~
      |   generic_handle_irq

Caused by commit

a0789993bf82 ("irqchip/xilinx: Enable generic irq multi handler")

Quoted 8 lines
Quoted 5 lines

I have reverted that commit (and commit

9c2d4f525c00 ("irqchip/xilinx: Do not call irq_set_default_host()")

that conflicted with the other revert).

I am still getting these errors.

Marc: Can you please respond my email I sent on Monday when Stephen reported this issue?

Thanks,
Michal