summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-06-15 14:24:29 -0400
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-06-15 14:25:01 -0400
commitb5328cd14557880e9eb757a8a9c8a88f1b23533a (patch)
treec3aba0fa33ae2b02a861c5de8c5c34b086375494
parent900cba8881b39dfbc7c8062098504ab93f5387a8 (diff)
downloadlinux-b5328cd14557880e9eb757a8a9c8a88f1b23533a.tar.bz2
xen: Fix compile warning when CONFIG_SMP is not defined.
.. which is quite benign. drivers/xen/events.c:398: warning: unused variable ‘desc’ Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
-rw-r--r--drivers/xen/events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c
index 553da68bd510..30df85d8fca8 100644
--- a/drivers/xen/events.c
+++ b/drivers/xen/events.c
@@ -395,9 +395,9 @@ static void unmask_evtchn(int port)
static void xen_irq_init(unsigned irq)
{
struct irq_info *info;
+#ifdef CONFIG_SMP
struct irq_desc *desc = irq_to_desc(irq);
-#ifdef CONFIG_SMP
/* By default all event channels notify CPU#0. */
cpumask_copy(desc->irq_data.affinity, cpumask_of(0));
#endif