Skip to contentSkip to conversation

nodemask: fix the declaration of NODEMASK_ALLOC()

PATCH In review Miao Xie 1 participant 1 message Mar 3, 2010 Bitmap API

lore
Share & tools
lore

Miao Xie

author
#0 lore raw

PATCH 2/4 nodemask: fix the declaration of NODEMASK_ALLOC()

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

this patch fixes it.

---
 include/linux/nodemask.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/nodemask.h +1 -1
index 454997c..9bd29e0 100644
@@ -494,7 +494,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
 
Signature · 1 line
1.6.5.2