diff options
author | Andi Kleen <andi@firstfloor.org> | 2010-07-20 15:22:54 -0700 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-07-27 20:43:05 +0200 |
commit | 1813a68457bb45b378d5bbec615b167deff3bcfc (patch) | |
tree | 26dda8988aaf4a0a54ce7d22178fb879849a0378 | |
parent | 25897374297906eeebef8864299406bdcb5859c3 (diff) | |
download | linux-1813a68457bb45b378d5bbec615b167deff3bcfc.tar.gz linux-1813a68457bb45b378d5bbec615b167deff3bcfc.tar.bz2 linux-1813a68457bb45b378d5bbec615b167deff3bcfc.zip |
x86: Move alloc_desk_mask variables inside ifdef
They are only useful with CONFIG_CPUMASK_OFFSTACK
Avoids hundreds of warnings with a gcc 4.6 -Wall build.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | include/linux/irq.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h index c03243ad84b4..fff1d77c3753 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h @@ -439,12 +439,12 @@ extern int set_irq_msi(unsigned int irq, struct msi_desc *entry); static inline bool alloc_desc_masks(struct irq_desc *desc, int node, bool boot) { +#ifdef CONFIG_CPUMASK_OFFSTACK gfp_t gfp = GFP_ATOMIC; if (boot) gfp = GFP_NOWAIT; -#ifdef CONFIG_CPUMASK_OFFSTACK if (!alloc_cpumask_var_node(&desc->affinity, gfp, node)) return false; |