Commit 425c9687 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc64: UP compile fixes

From: Anton Blanchard <anton@samba.org>

UP compile fixes
parent acfc20f7
...@@ -236,6 +236,7 @@ static unsigned int real_irq_to_virt(unsigned int real_irq) ...@@ -236,6 +236,7 @@ static unsigned int real_irq_to_virt(unsigned int real_irq)
return ptr - virt_irq_to_real_map; return ptr - virt_irq_to_real_map;
} }
#ifdef CONFIG_SMP
static int get_irq_server(unsigned int irq) static int get_irq_server(unsigned int irq)
{ {
cpumask_t cpumask = irq_affinity[irq]; cpumask_t cpumask = irq_affinity[irq];
...@@ -265,6 +266,12 @@ static int get_irq_server(unsigned int irq) ...@@ -265,6 +266,12 @@ static int get_irq_server(unsigned int irq)
return server; return server;
} }
#else
static int get_irq_server(unsigned int irq)
{
return default_server;
}
#endif
static void xics_enable_irq(unsigned int virq) static void xics_enable_irq(unsigned int virq)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment