Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <miaox@cn.fujitsu.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Lee Schermerhorn <lee.schermerhorn@hp.com>
Cc: Nick Piggin <npiggin@suse.de>
Cc: Paul Menage <menage@google.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Miao Xie and committed by
Linus Torvalds
7baab93f a38374b8

+1 -1
+1 -1
include/linux/nodemask.h
··· 483 483 type *name = kmalloc(sizeof(*name), gfp_flags) 484 484 #define NODEMASK_FREE(m) kfree(m) 485 485 #else 486 - #define NODEMASK_ALLOC(type, name, gfp_flags) type _name, *name = &_name 486 + #define NODEMASK_ALLOC(type, name, gfp_flags) type _##name, *name = &_##name 487 487 #define NODEMASK_FREE(m) do {} while (0) 488 488 #endif 489 489