Commit 7baab93f authored by Miao Xie's avatar Miao Xie Committed by Linus Torvalds
Browse files

nodemask: fix the declaration of NODEMASK_ALLOC()

we can't declarate two variable at the same scope by NODEMASK_ALLOC().

This patch fixes it.

Signed-off-by: default avatarMiao Xie <>
Cc: David Rientjes <>
Cc: Lee Schermerhorn <>
Cc: Nick Piggin <>
Cc: Paul Menage <>
Cc: Ingo Molnar <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent a38374b8
......@@ -483,7 +483,7 @@ static inline int num_node_state(enum node_states state)
type *name = kmalloc(sizeof(*name), gfp_flags)
#define NODEMASK_FREE(m) kfree(m)
#define NODEMASK_ALLOC(type, name, gfp_flags) type _name, *name = &_name
#define NODEMASK_ALLOC(type, name, gfp_flags) type _##name, *name = &_##name
#define NODEMASK_FREE(m) do {} while (0)
Supports Markdown
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