Skip to contentSkip to conversation

powerpc/pseries: Fix xics build without CONFIG_SMP

PATCH New Benjamin Herrenschmidt 1 participant 1 message Feb 1, 2010 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/pseries: Fix xics build without CONFIG_SMP

desc->affinity doesn't exit in that case. Let's use a macro for the UP variant of get_irq_server(), it's the easiest way, avoids evaluating arguments.

---
 arch/powerpc/platforms/pseries/xics.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
arch/powerpc/platforms/pseries/xics.c +1 -5
index d80f193..1ee66db 100644
@@ -191,11 +191,7 @@ static int get_irq_server(unsigned int virq, cpumask_t cpumask,
 	return default_server;
 }
 #else
-static int get_irq_server(unsigned int virq, cpumask_t cpumask,
-			  unsigned int strict_check)
-{
-	return default_server;
-}
+#define get_irq_server(virq, cpumask, strict_check) (default_server)
 #endif
 
 static void xics_unmask_irq(unsigned int virq)