]> err.no Git - linux-2.6/commitdiff
[PATCH] powerpc32: fix definition of distribute_irqs
authorAndy Whitcroft <apw@shadowen.org>
Tue, 29 Nov 2005 19:25:54 +0000 (19:25 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 03:51:43 +0000 (14:51 +1100)
When we select ppc32 under the powerpc architecture we get the
error below.  This relates to defining distribute_irqs when this
configuratiom option is undefined.

      CC      arch/powerpc/sysdev/mpic.o
    .../arch/powerpc/sysdev/mpic.c: In function `mpic_setup_this_cpu':
    .../arch/powerpc/sysdev/mpic.c:788: error: `CONFIG_IRQ_ALL_CPUS'
undeclared (first use in this function)

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/sysdev/mpic.c

index 58d1cc2023c843df763db2b4b3d11aa753172b05..ae24e2b82c5a47b75e53c59f1788ab34bab7a700 100644 (file)
@@ -45,7 +45,11 @@ static struct mpic *mpic_primary;
 static DEFINE_SPINLOCK(mpic_lock);
 
 #ifdef CONFIG_PPC32    /* XXX for now */
-#define distribute_irqs        CONFIG_IRQ_ALL_CPUS
+#ifdef CONFIG_IRQ_ALL_CPUS
+#define distribute_irqs        (1)
+#else
+#define distribute_irqs        (0)
+#endif
 #endif
 
 /*