提交 b5328cd1 编写于 作者: K Konrad Rzeszutek Wilk

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: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
上级 900cba88
...@@ -395,9 +395,9 @@ static void unmask_evtchn(int port) ...@@ -395,9 +395,9 @@ static void unmask_evtchn(int port)
static void xen_irq_init(unsigned irq) static void xen_irq_init(unsigned irq)
{ {
struct irq_info *info; struct irq_info *info;
#ifdef CONFIG_SMP
struct irq_desc *desc = irq_to_desc(irq); struct irq_desc *desc = irq_to_desc(irq);
#ifdef CONFIG_SMP
/* By default all event channels notify CPU#0. */ /* By default all event channels notify CPU#0. */
cpumask_copy(desc->irq_data.affinity, cpumask_of(0)); cpumask_copy(desc->irq_data.affinity, cpumask_of(0));
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册