Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 2 messages Mar 2, 2022 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the mhi tree, today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/bus/mhi/ep/main.c: In function 'mhi_ep_register_controller':
drivers/bus/mhi/ep/main.c:1426:9: error: implicit declaration of function 'irq_set_status_flags' [-Werror=implicit-function-declaration]

 1426 |         irq_set_status_flags(mhi_cntrl->irq, IRQ_NOAUTOEN);
      |         ^~~~~~~~~~~~~~~~~~~~
drivers/bus/mhi/ep/main.c:1426:46: error: 'IRQ_NOAUTOEN' undeclared (first use in this function); did you mean 'IRQF_NO_AUTOEN'?
 1426 |         irq_set_status_flags(mhi_cntrl->irq, IRQ_NOAUTOEN);
      |                                              ^~~~~~~~~~~~
      |                                              IRQF_NO_AUTOEN

drivers/bus/mhi/ep/main.c:1426:46: note: each undeclared identifier is reported only once for each function it appears in

Caused by commit

6cb3bc57b0c5 ("bus: mhi: ep: Add support for processing MHI endpoint interrupts")

Presumably a missing include.

I have used the mhi tree from next-20220301 for today.

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

Hi Stephen,

Quoted 13 lines · Stephen Rothwell

Hi all,

After merging the mhi tree, today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/bus/mhi/ep/main.c: In function 'mhi_ep_register_controller':
drivers/bus/mhi/ep/main.c:1426:9: error: implicit declaration of function 'irq_set_status_flags' [-Werror=implicit-function-declaration]

 1426 |         irq_set_status_flags(mhi_cntrl->irq, IRQ_NOAUTOEN);
      |         ^~~~~~~~~~~~~~~~~~~~
drivers/bus/mhi/ep/main.c:1426:46: error: 'IRQ_NOAUTOEN' undeclared (first use in this function); did you mean 'IRQF_NO_AUTOEN'?
 1426 |         irq_set_status_flags(mhi_cntrl->irq, IRQ_NOAUTOEN);
      |                                              ^~~~~~~~~~~~
      |                                              IRQF_NO_AUTOEN
Quoted 8 lines

drivers/bus/mhi/ep/main.c:1426:46: note: each undeclared identifier is reported only once for each function it appears in

Caused by commit

6cb3bc57b0c5 ("bus: mhi: ep: Add support for processing MHI endpoint interrupts")

Presumably a missing include.

Yes, it seems I was missing "#include <linux/irq.h>" for irq APIs. Fixed now!

But somehow this header got included in ARM cross compilation and I failed to catch it.

Thanks,
Mani

Quoted 5 lines

I have used the mhi tree from next-20220301 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell