* [PATCH] powerpc ppc32 fix definition of distribute_irqs
@ 2005-11-29 19:25 Andy Whitcroft
0 siblings, 0 replies; only message in thread
From: Andy Whitcroft @ 2005-11-29 19:25 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev, Andy Whitcroft
Now that I can attempt to compile powerpc/ppc32 it appears there is
a problem with the definition of distribute_irqs, this patch
seems to fix it for me.
-apw
=== 8< ===
powerpc: ppc32 fix definition of distribute_irqs
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)
Against 2.6.15-rc3.
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
---
diff -upN reference/arch/powerpc/sysdev/mpic.c current/arch/powerpc/sysdev/mpic.c
--- reference/arch/powerpc/sysdev/mpic.c
+++ current/arch/powerpc/sysdev/mpic.c
@@ -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
/*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-11-29 19:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-29 19:25 [PATCH] powerpc ppc32 fix definition of distribute_irqs Andy Whitcroft
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).