From 44626e4a3bd764283193e14e64f9324e48b4bfd8 Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Tue, 15 Mar 2011 16:40:33 -0400 Subject: xen: events: Fix compile error if CONFIG_SMP is not defined. drivers/xen/events.c:396: error: 'struct irq_data' has no member named 'affinity' Reported-by: Randy Dunlap Signed-off-by: Konrad Rzeszutek Wilk --- drivers/xen/events.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/xen') diff --git a/drivers/xen/events.c b/drivers/xen/events.c index dc8177950d0..4591853f6eb 100644 --- a/drivers/xen/events.c +++ b/drivers/xen/events.c @@ -392,8 +392,10 @@ static void xen_irq_init(unsigned irq) struct irq_info *info; 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 info = kzalloc(sizeof(*info), GFP_KERNEL); if (info == NULL) -- cgit v1.2.3-18-g5258