Commit c59d85a7 authored by Ingo Molnar's avatar Ingo Molnar

sparseirq: export nr_irqs on m68k/sparc/s390

Stephen Rothwell reported such build failures on m68k/sparc/s390:

> ERROR: "nr_irqs" [drivers/net/hamradio/baycom_ser_fdx.ko] undefined!
> ERROR: "nr_irqs" [drivers/net/3c59x.ko] undefined!

export nr_irqs on these architectures too.
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 1dd6ba2e
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
#endif #endif
int nr_irqs = NR_IRQS; int nr_irqs = NR_IRQS;
EXPORT_SYMBOL(nr_irqs);
extern u32 auto_irqhandler_fixup[]; extern u32 auto_irqhandler_fixup[];
extern u32 user_irqhandler_fixup[]; extern u32 user_irqhandler_fixup[];
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <linux/profile.h> #include <linux/profile.h>
int nr_irqs = NR_IRQS; int nr_irqs = NR_IRQS;
EXPORT_SYMBOL(nr_irqs);
/* /*
* show_interrupts is needed by /proc/interrupts. * show_interrupts is needed by /proc/interrupts.
......
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
#endif /* SMP */ #endif /* SMP */
int nr_irqs = NR_IRQS; int nr_irqs = NR_IRQS;
EXPORT_SYMBOL(nr_irqs);
unsigned long __raw_local_irq_save(void) unsigned long __raw_local_irq_save(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment