Skip to content

Commit

Permalink
sparseirq: export nr_irqs on m68k/sparc/s390
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar committed Oct 16, 2008
1 parent 1dd6ba2 commit c59d85a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/m68k/kernel/ints.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#endif

int nr_irqs = NR_IRQS;
EXPORT_SYMBOL(nr_irqs);

extern u32 auto_irqhandler_fixup[];
extern u32 user_irqhandler_fixup[];
Expand Down
1 change: 1 addition & 0 deletions arch/s390/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <linux/profile.h>

int nr_irqs = NR_IRQS;
EXPORT_SYMBOL(nr_irqs);

/*
* show_interrupts is needed by /proc/interrupts.
Expand Down
1 change: 1 addition & 0 deletions arch/sparc/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
#endif /* SMP */

int nr_irqs = NR_IRQS;
EXPORT_SYMBOL(nr_irqs);

unsigned long __raw_local_irq_save(void)
{
Expand Down

0 comments on commit c59d85a

Please sign in to comment.