[PATCH] build kernel/irq/migration.c only if CONFIG_GENERIC_PENDING_IRQ is set

From: Christoph Hellwig
Date: Sat Apr 01 2006 - 12:49:27 EST



Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Index: linux-2.6/kernel/irq/Makefile
===================================================================
--- linux-2.6.orig/kernel/irq/Makefile 2006-03-26 14:45:50.000000000 +0200
+++ linux-2.6/kernel/irq/Makefile 2006-03-26 14:48:32.000000000 +0200
@@ -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: linux-2.6/kernel/irq/migration.c
===================================================================
--- linux-2.6.orig/kernel/irq/migration.c 2006-03-26 14:45:50.000000000 +0200
+++ linux-2.6/kernel/irq/migration.c 2006-03-26 14:48:59.000000000 +0200
@@ -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 @@
}
cpus_clear(pending_irq_cpumask[irq]);
}
-
-#endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/