summaryrefslogtreecommitdiff
path: root/include/linux/random.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-12-12 13:26:39 +0300
committerIngo Molnar <mingo@elte.hu>2008-12-12 14:28:50 +0300
commit0ebb26e7a4e2c5337502e98b2221e037fda911b9 (patch)
treec761f4ed74cf412bd2f9de7a091280797548c5b1 /include/linux/random.h
parent8a4830f8891be6b4e04809693a24771a4694e0b0 (diff)
downloadlinux-0ebb26e7a4e2c5337502e98b2221e037fda911b9.tar.xz
sparse irqs: handle !GENIRQ platforms
Impact: build fix fix: In file included from /home/mingo/tip/arch/m68k/amiga/amiints.c:39: /home/mingo/tip/include/linux/interrupt.h:21: error: expected identifier or '(' /home/mingo/tip/arch/m68k/amiga/amiints.c: In function 'amiga_init_IRQ': Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/random.h')
-rw-r--r--include/linux/random.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/random.h b/include/linux/random.h
index ad9daa2374d5..adbf3bd3c6b3 100644
--- a/include/linux/random.h
+++ b/include/linux/random.h
@@ -8,6 +8,7 @@
#define _LINUX_RANDOM_H
#include <linux/ioctl.h>
+#include <linux/irqnr.h>
/* ioctl()'s for the random number generator */
@@ -49,7 +50,6 @@ struct timer_rand_state;
extern struct timer_rand_state *irq_timer_state[];
-extern int nr_irqs;
static inline struct timer_rand_state *get_timer_rand_state(unsigned int irq)
{
if (irq >= nr_irqs)