aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiao Xie <[email protected]>2010-03-10 15:22:42 -0800
committerLinus Torvalds <[email protected]>2010-03-12 15:52:38 -0800
commit7baab93f9297da3e42a8cecfbf91d5f22f415500 (patch)
tree8f0f37d90af711b9726ded6a546acb8050515988
parenta38374b8bd482b1e7c25f830772e9b73337ec2ed (diff)
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: Miao Xie <[email protected]> Cc: David Rientjes <[email protected]> Cc: Lee Schermerhorn <[email protected]> Cc: Nick Piggin <[email protected]> Cc: Paul Menage <[email protected]> Cc: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--include/linux/nodemask.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/nodemask.h b/include/linux/nodemask.h
index c4fa64b585ff..dba35e413371 100644
--- a/include/linux/nodemask.h
+++ b/include/linux/nodemask.h
@@ -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)
#else
-#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)
#endif