Commit c3c117f0 authored by David Rientjes's avatar David Rientjes Committed by Linus Torvalds

i386 mmzone: use __maybe_unused

Replace automatic variable instances of __attribute__ ((unused)) with
__maybe_unused.

Cc: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent affd872e
...@@ -122,21 +122,21 @@ static inline int pfn_valid(int pfn) ...@@ -122,21 +122,21 @@ static inline int pfn_valid(int pfn)
__alloc_bootmem_node(NODE_DATA(0), (x), PAGE_SIZE, 0) __alloc_bootmem_node(NODE_DATA(0), (x), PAGE_SIZE, 0)
#define alloc_bootmem_node(pgdat, x) \ #define alloc_bootmem_node(pgdat, x) \
({ \ ({ \
struct pglist_data __attribute__ ((unused)) \ struct pglist_data __maybe_unused \
*__alloc_bootmem_node__pgdat = (pgdat); \ *__alloc_bootmem_node__pgdat = (pgdat); \
__alloc_bootmem_node(NODE_DATA(0), (x), SMP_CACHE_BYTES, \ __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) \ #define alloc_bootmem_pages_node(pgdat, x) \
({ \ ({ \
struct pglist_data __attribute__ ((unused)) \ struct pglist_data __maybe_unused \
*__alloc_bootmem_node__pgdat = (pgdat); \ *__alloc_bootmem_node__pgdat = (pgdat); \
__alloc_bootmem_node(NODE_DATA(0), (x), PAGE_SIZE, \ __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) \ #define alloc_bootmem_low_pages_node(pgdat, x) \
({ \ ({ \
struct pglist_data __attribute__ ((unused)) \ struct pglist_data __maybe_unused \
*__alloc_bootmem_node__pgdat = (pgdat); \ *__alloc_bootmem_node__pgdat = (pgdat); \
__alloc_bootmem_node(NODE_DATA(0), (x), PAGE_SIZE, 0); \ __alloc_bootmem_node(NODE_DATA(0), (x), PAGE_SIZE, 0); \
}) })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment