From: Miao Xie Date: Wed, 10 Mar 2010 23:22:42 +0000 (-0800) Subject: nodemask: fix the declaration of NODEMASK_ALLOC() X-Git-Tag: v2.6.34-rc2~152 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;h=7baab93f9297da3e42a8cecfbf91d5f22f415500;p=safe%2Fjmp%2Flinux-2.6 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 Cc: David Rientjes Cc: Lee Schermerhorn Cc: Nick Piggin Cc: Paul Menage Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/nodemask.h b/include/linux/nodemask.h index c4fa64b..dba35e4 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