Skip to contentSkip to conversation

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

PATCH New Christoph Hellwig 1 participant 1 message Apr 1, 2006 IRQ

lore
Share & tools
lore
#0 lore raw

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

kernel/irq/Makefile +2 -1
Index: linux-2.6/kernel/irq/Makefile
===================================================================
@@ -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
kernel/irq/migration.c +1 -4
Index: linux-2.6/kernel/irq/migration.c
===================================================================
@@ -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