mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
i386 mmzone: use __maybe_unused
Replace automatic variable instances of __attribute__ ((unused)) with __maybe_unused. Cc: Andy Whitcroft <apw@shadowen.org> Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
affd872ebb
commit
c3c117f06e
1 changed files with 3 additions and 3 deletions
|
@ -122,21 +122,21 @@ static inline int pfn_valid(int pfn)
|
|||
__alloc_bootmem_node(NODE_DATA(0), (x), PAGE_SIZE, 0)
|
||||
#define alloc_bootmem_node(pgdat, x) \
|
||||
({ \
|
||||
struct pglist_data __attribute__ ((unused)) \
|
||||
struct pglist_data __maybe_unused \
|
||||
*__alloc_bootmem_node__pgdat = (pgdat); \
|
||||
__alloc_bootmem_node(NODE_DATA(0), (x), SMP_CACHE_BYTES, \
|
||||
__pa(MAX_DMA_ADDRESS)); \
|
||||
})
|
||||
#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(NODE_DATA(0), (x), PAGE_SIZE, \
|
||||
__pa(MAX_DMA_ADDRESS)) \
|
||||
})
|
||||
#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(NODE_DATA(0), (x), PAGE_SIZE, 0); \
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue