[PATCH] build kernel/irq/migration.c only if CONFIG_GENERIC_PENDING_IRQ is set
authorChristoph Hellwig <hch@lst.de>
Tue, 11 Apr 2006 05:54:04 +0000 (22:54 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:18:41 +0000 (06:18 -0700)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/irq/Makefile
kernel/irq/migration.c

index 2b33f852be3eaf123aa63d530f2d58c5126a19c2..9f77f50d814317409f1ed02ce73372bfb428c99f 100644 (file)
@@ -1,4 +1,5 @@
 
-obj-y := handle.o manage.o spurious.o migration.o
+obj-y := handle.o manage.o spurious.o
 obj-$(CONFIG_GENERIC_IRQ_PROBE) += autoprobe.o
 obj-$(CONFIG_PROC_FS) += proc.o
+obj-$(CONFIG_GENERIC_PENDING_IRQ) += migration.o
index 52a8655fa080047a64cf3dc39635d28c2183abb7..134f9f2e0e3962cabf8859d6bc5581f9dfdfea16 100644 (file)
@@ -1,6 +1,5 @@
-#include <linux/irq.h>
 
-#if defined(CONFIG_GENERIC_PENDING_IRQ)
+#include <linux/irq.h>
 
 void set_pending_irq(unsigned int irq, cpumask_t mask)
 {
@@ -61,5 +60,3 @@ void move_native_irq(int irq)
        }
        cpus_clear(pending_irq_cpumask[irq]);
 }
-
-#endif