From 1193d015f0567afbb2959d6f175b172fe0ff4c63 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Thu, 4 Sep 2008 22:37:50 +0400 Subject: [PATCH] --- yaml --- r: 116498 b: refs/heads/master c: ac54a6c9371bacb86bee1db23f7d82e8685c7e17 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/x86/kernel/io_apic.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index f3d34851ebef..fbb9aa5cd341 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 676f4a920be27160747439fe71026aa15ec78e5a +refs/heads/master: ac54a6c9371bacb86bee1db23f7d82e8685c7e17 diff --git a/trunk/arch/x86/kernel/io_apic.c b/trunk/arch/x86/kernel/io_apic.c index 9b01fdadcb9b..d22fecf828b8 100644 --- a/trunk/arch/x86/kernel/io_apic.c +++ b/trunk/arch/x86/kernel/io_apic.c @@ -147,14 +147,15 @@ static void init_one_irq_cfg(struct irq_cfg *cfg) static struct irq_cfg *irq_cfgx; +#ifdef CONFIG_HAVE_SPARSE_IRQ /* * Protect the irq_cfgx_free freelist: */ static DEFINE_SPINLOCK(irq_cfg_lock); -#ifdef CONFIG_HAVE_SPARSE_IRQ static struct irq_cfg *irq_cfgx_free; #endif + static void __init init_work(void *data) { struct dyn_array *da = data;