lkml.org 
[lkml]   [2008]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 071/148] include/asm-x86/mmzone_32.h: checkpatch cleanups - formatting only
    Date

    Signed-off-by: Joe Perches <joe@perches.com>
    ---
    include/asm-x86/mmzone_32.h | 34 ++++++++++++++++++----------------
    1 files changed, 18 insertions(+), 16 deletions(-)

    diff --git a/include/asm-x86/mmzone_32.h b/include/asm-x86/mmzone_32.h
    index b9f5be2..e3a1390 100644
    --- a/include/asm-x86/mmzone_32.h
    +++ b/include/asm-x86/mmzone_32.h
    @@ -18,7 +18,7 @@ extern struct pglist_data *node_data[];
    #include <asm/srat.h>
    #endif

    -extern int get_memcfg_numa_flat(void );
    +extern int get_memcfg_numa_flat(void);
    /*
    * This allows any one NUMA architecture to be compiled
    * for, and still fall back to the flat function if it
    @@ -107,34 +107,36 @@ static inline int pfn_valid(int pfn)
    /*
    * Following are macros that are specific to this numa platform.
    */
    -#define reserve_bootmem(addr, size, flags) \
    +#define reserve_bootmem(addr, size, flags) \
    reserve_bootmem_node(NODE_DATA(0), (addr), (size), (flags))
    -#define alloc_bootmem(x) \
    - __alloc_bootmem_node(NODE_DATA(0), (x), SMP_CACHE_BYTES, __pa(MAX_DMA_ADDRESS))
    -#define alloc_bootmem_low(x) \
    +#define alloc_bootmem(x) \
    + __alloc_bootmem_node(NODE_DATA(0), (x), SMP_CACHE_BYTES, \
    + __pa(MAX_DMA_ADDRESS))
    +#define alloc_bootmem_low(x) \
    __alloc_bootmem_node(NODE_DATA(0), (x), SMP_CACHE_BYTES, 0)
    -#define alloc_bootmem_pages(x) \
    - __alloc_bootmem_node(NODE_DATA(0), (x), PAGE_SIZE, __pa(MAX_DMA_ADDRESS))
    -#define alloc_bootmem_low_pages(x) \
    +#define alloc_bootmem_pages(x) \
    + __alloc_bootmem_node(NODE_DATA(0), (x), PAGE_SIZE, \
    + __pa(MAX_DMA_ADDRESS))
    +#define alloc_bootmem_low_pages(x) \
    __alloc_bootmem_node(NODE_DATA(0), (x), PAGE_SIZE, 0)
    #define alloc_bootmem_node(pgdat, x) \
    ({ \
    - struct pglist_data __maybe_unused \
    - *__alloc_bootmem_node__pgdat = (pgdat); \
    + struct pglist_data *__alloc_bootmem_node__pgdat = (pgdat) \
    + __maybe_unused; \
    __alloc_bootmem_node(NODE_DATA(0), (x), SMP_CACHE_BYTES, \
    - __pa(MAX_DMA_ADDRESS)); \
    + __pa(MAX_DMA_ADDRESS)); \
    })
    #define alloc_bootmem_pages_node(pgdat, x) \
    ({ \
    - struct pglist_data __maybe_unused \
    - *__alloc_bootmem_node__pgdat = (pgdat); \
    + struct pglist_data *__alloc_bootmem_node__pgdat = (pgdat) \
    + __maybe_unused; \
    __alloc_bootmem_node(NODE_DATA(0), (x), PAGE_SIZE, \
    - __pa(MAX_DMA_ADDRESS)); \
    + __pa(MAX_DMA_ADDRESS)); \
    })
    #define alloc_bootmem_low_pages_node(pgdat, x) \
    ({ \
    - struct pglist_data __maybe_unused \
    - *__alloc_bootmem_node__pgdat = (pgdat); \
    + struct pglist_data *__alloc_bootmem_node__pgdat = (pgdat) \
    + __maybe_unused; \
    __alloc_bootmem_node(NODE_DATA(0), (x), PAGE_SIZE, 0); \
    })
    #endif /* CONFIG_NEED_MULTIPLE_NODES */
    --
    1.5.4.rc2


    \
     
     \ /
      Last update: 2008-03-23 10:05    [W:4.033 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site