]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sparseirq: export nr_irqs on m68k/sparc/s390
authorIngo Molnar <mingo@elte.hu>
Thu, 28 Aug 2008 06:56:33 +0000 (08:56 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:53:04 +0000 (16:53 +0200)
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: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/m68k/kernel/ints.c
arch/s390/kernel/irq.c
arch/sparc/kernel/irq.c

index 74453d15692eac627848a7a8b38479ca82f7421f..44169e4cd91dd536f4a6088cdb49dbe572bc5b37 100644 (file)
@@ -47,6 +47,7 @@
 #endif
 
 int nr_irqs = NR_IRQS;
+EXPORT_SYMBOL(nr_irqs);
 
 extern u32 auto_irqhandler_fixup[];
 extern u32 user_irqhandler_fixup[];
index 14eb5496c8a81ddf0708f3e4e7adfd9e406279ef..3624c4a0037a6e79e2a5ec2939f7bee98880ab60 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/profile.h>
 
 int nr_irqs = NR_IRQS;
+EXPORT_SYMBOL(nr_irqs);
 
 /*
  * show_interrupts is needed by /proc/interrupts.
index 059598b7e0f0ff6c8f33d667834dfa48612a2b11..4b99e3ce391616225c1472b0586a392ef4b5b20f 100644 (file)
@@ -57,6 +57,7 @@
 #endif /* SMP */
 
 int nr_irqs = NR_IRQS;
+EXPORT_SYMBOL(nr_irqs);
 
 unsigned long __raw_local_irq_save(void)
 {