summaryrefslogtreecommitdiffstats
path: root/drivers/xen
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-03-15 21:40:33 +0100
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-03-15 21:40:33 +0100
commit44626e4a3bd764283193e14e64f9324e48b4bfd8 (patch)
treed6e47e75b03a5bc006a856696e845db32f983035 /drivers/xen
parentxen: events: correct locking in xen_irq_from_pirq (diff)
downloadlinux-44626e4a3bd764283193e14e64f9324e48b4bfd8.tar.xz
linux-44626e4a3bd764283193e14e64f9324e48b4bfd8.zip
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 <randy.dunlap@oracle.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r--drivers/xen/events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c
index dc8177950d05..4591853f6ebc 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)