提交 ac54a6c9 编写于 作者: C Cyrill Gorcunov 提交者: Ingo Molnar

x86: io-apic - declare irq_cfg_lock for SPARSE_IRQ only

We use irq_cfg_lock lock in SPARSE_IRQ only context so
move it under #ifdef and compiler will be happy.
Signed-off-by: NCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 676f4a92
...@@ -147,14 +147,15 @@ static void init_one_irq_cfg(struct irq_cfg *cfg) ...@@ -147,14 +147,15 @@ static void init_one_irq_cfg(struct irq_cfg *cfg)
static struct irq_cfg *irq_cfgx; static struct irq_cfg *irq_cfgx;
#ifdef CONFIG_HAVE_SPARSE_IRQ
/* /*
* Protect the irq_cfgx_free freelist: * Protect the irq_cfgx_free freelist:
*/ */
static DEFINE_SPINLOCK(irq_cfg_lock); static DEFINE_SPINLOCK(irq_cfg_lock);
#ifdef CONFIG_HAVE_SPARSE_IRQ
static struct irq_cfg *irq_cfgx_free; static struct irq_cfg *irq_cfgx_free;
#endif #endif
static void __init init_work(void *data) static void __init init_work(void *data)
{ {
struct dyn_array *da = data; struct dyn_array *da = data;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册