Skip to contentSkip to conversation

irq: export irq_check_status_bit symbol

PATCH RESEND In review Yun Levi 2 participants 2 messages Jan 6, 2021 – Jan 22, 2021 IRQ

lore
Share & tools
lore

Yun Levi

author
#0 lore raw

PATCH RESEND 1/1 irq: export irq_check_status_bit symbol

Because of the missing export symbol for irq_chekc_status_bit, Building arm_spe_pmu.ko is a failure on the modpost step.

Below is an error message I saw:
ERROR:modpost: "irq_check_status_bit" [drivers/perf/arm_spe_pmu.ko] undefined! make[4]: *** [scripts/Makefile.modpost:111: Module.symvers] Error 1 make[4]: *** Deleting file 'Module.symvers'
make[3]: *** [Makefile:1396: modules] Error 2
make[2]: *** [debian/rules:7: build-arch] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 make[1]: *** [scripts/Makefile.package:83: bindeb-pkg] Error 2

---
 kernel/irq/manage.c | 1 +
 1 file changed, 1 insertion(+)
kernel/irq/manage.c +0 -0
index ab8567f32501..dec3f73e8db9 100644
@@ -2859,3 +2859,4 @@ bool irq_check_status_bit(unsigned int irq,

unsigned int bitmask)

        rcu_read_unlock();
        return res;

}
+EXPORT_SYMBOL_GPL(irq_check_status_bit);
--
2.27.0

Tested-by on v1 1/1
#1 lore raw
Quoted 28 lines · Yun Levi

Because of the missing export symbol for irq_chekc_status_bit, Building arm_spe_pmu.ko is a failure on the modpost step.

Below is an error message I saw:
ERROR:modpost: "irq_check_status_bit" [drivers/perf/arm_spe_pmu.ko] undefined! make[4]: *** [scripts/Makefile.modpost:111: Module.symvers] Error 1 make[4]: *** Deleting file 'Module.symvers'
make[3]: *** [Makefile:1396: modules] Error 2
make[2]: *** [debian/rules:7: build-arch] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 make[1]: *** [scripts/Makefile.package:83: bindeb-pkg] Error 2

---
  kernel/irq/manage.c | 1 +
  1 file changed, 1 insertion(+)
kernel/irq/manage.c +1 -1
index ab8567f32501..dec3f73e8db9 100644
@@ -2859,3 +2859,4 @@ bool irq_check_status_bit(unsigned int irq,
 unsigned int bitmask)
         rcu_read_unlock();
         return res;
  }
+EXPORT_SYMBOL_GPL(irq_check_status_bit);
--
Quoted 3 lines

2.27.0

Hi,

I ran into this issue while compiling 5.11-rc4 for my RPi 4B. Applying this patch fixed the breakage.

Thanks for the fix!

Best,
Brooke Basile