Skip to content

Commit

Permalink
xen: events: Fix compile error if CONFIG_SMP is not defined.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Konrad Rzeszutek Wilk committed Mar 15, 2011
1 parent a7b807c commit 44626e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/xen/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 44626e4

Please sign in to comment.