* [PATCH V2 2/4] nodemask: fix the declaration of NODEMASK_ALLOC()
@ 2010-03-08 10:05 Miao Xie
0 siblings, 0 replies; only message in thread
From: Miao Xie @ 2010-03-08 10:05 UTC (permalink / raw)
To: Andrew Morton, David Rientjes, Lee Schermerhorn, Nick Piggin; +Cc: Linux-Kernel
Changes from V1 to V2:
- None
we can't declarate two variable at the same scope by NODEMASK_ALLOC().
this patch fixes it.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
---
include/linux/nodemask.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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
--
1.6.5.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-08 10:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-08 10:05 [PATCH V2 2/4] nodemask: fix the declaration of NODEMASK_ALLOC() Miao Xie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox