sparseirq: fix build with unknown irq_desc struct
authorYinghai Lu <yinghai@kernel.org>
Sun, 11 Jan 2009 08:35:42 +0000 (00:35 -0800)
committerIngo Molnar <mingo@elte.hu>
Sun, 11 Jan 2009 15:06:03 +0000 (16:06 +0100)
Ingo Molnar wrote:
>
> tip/kernel/fork.c: In function 'copy_signal':
> tip/kernel/fork.c:825: warning: unused variable 'ret'
> tip/drivers/char/random.c: In function 'get_timer_rand_state':
> tip/drivers/char/random.c:584: error: dereferencing pointer to incomplete type
> tip/drivers/char/random.c: In function 'set_timer_rand_state':
> tip/drivers/char/random.c:594: error: dereferencing pointer to incomplete type
> make[3]: *** [drivers/char/random.o] Error 1

irq_desc is defined in linux/irq.h, so include it in the genirq case.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
drivers/char/random.c

index a778918c8f4282419d585b5acf55aa8ec6adeda3..7c43ae782b26e385e1b0c96efacd7e82846b794b 100644 (file)
 #include <linux/percpu.h>
 #include <linux/cryptohash.h>
 
+#ifdef CONFIG_GENERIC_HARDIRQS
+# include <linux/irq.h>
+#endif
+
 #include <asm/processor.h>
 #include <asm/uaccess.h>
 #include <asm/irq.h>