From: Andrew Morton Date: Thu, 18 Sep 2008 23:10:48 +0000 (-0700) Subject: fix warning: "x86: sparse_irq needs spin_lock in allocations" X-Git-Tag: v2.6.28-rc1~80^2~35 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2976fe20125587c944c8df48d991c38f0891fb28;p=linux-2.6-omap-h63xx.git fix warning: "x86: sparse_irq needs spin_lock in allocations" caused by commit a532e19680ada3b8579b81e67e76d3ebd19c340f Author: Yinghai Lu Date: Wed Aug 20 20:46:25 2008 -0700 x86: sparse_irq needs spin_lock in allocations Signed-off-by: Andrew Morton Signed-off-by: Ingo Molnar --- diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index 710db0ec97e..7f625fbc9aa 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c @@ -111,12 +111,11 @@ static void init_kstat_irqs(struct irq_desc *desc, int nr_desc, int nr) } } +#ifdef CONFIG_HAVE_SPARSE_IRQ /* * Protect the sparse_irqs_free freelist: */ static DEFINE_SPINLOCK(sparse_irq_lock); - -#ifdef CONFIG_HAVE_SPARSE_IRQ static struct irq_desc *sparse_irqs_free; struct irq_desc *sparse_irqs; #endif