lkml.org 
[lkml]   [2010]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] [2/23] IRQ: Move alloc_desk_mask variables inside ifdef
    Date

    They are only useful with CONFIG_CPUMASK_OFFSTACK

    Avoids hundreds of warnings with a gcc 4.6 -Wall build.

    Cc: tglx@linutronix.de
    Signed-off-by: Andi Kleen <ak@linux.intel.com>

    ---
    include/linux/irq.h | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    Index: linux-2.6.35-rc2-gcc/include/linux/irq.h
    ===================================================================
    --- linux-2.6.35-rc2-gcc.orig/include/linux/irq.h
    +++ linux-2.6.35-rc2-gcc/include/linux/irq.h
    @@ -439,12 +439,12 @@ extern int set_irq_msi(unsigned int irq,
    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;


    \
     
     \ /
      Last update: 2010-06-10 13:13    [W:0.018 / U:3.876 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site