[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4B94CBE7.70604@cn.fujitsu.com>
Date: Mon, 08 Mar 2010 18:05:27 +0800
From: Miao Xie <miaox@...fujitsu.com>
To: Andrew Morton <akpm@...ux-foundation.org>,
David Rientjes <rientjes@...gle.com>,
Lee Schermerhorn <lee.schermerhorn@...com>,
Nick Piggin <npiggin@...e.de>
CC: Linux-Kernel <linux-kernel@...r.kernel.org>
Subject: [PATCH V2 2/4] nodemask: fix the declaration of NODEMASK_ALLOC()
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@...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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists