]> git.baikalelectronics.ru Git - kernel.git/commit
mm: fix sparse warnings on GFP_ZONE_TABLE/BAD
authorNamhyung Kim <namhyung@gmail.com>
Tue, 26 Oct 2010 21:22:04 +0000 (14:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:10 +0000 (16:52 -0700)
commit77a3d0e5d9ef6a1a02251cc45528f4f22b36df5c
tree174dcc56e46bf5f939824031957270b4a9f7a9c6
parentbf930fc87fa59a89155b9a55c54961e8fcd8b0bd
mm: fix sparse warnings on GFP_ZONE_TABLE/BAD

Introduce ___GFP_* masks in order for gfp_t to not be mixed with plain
integers which causes a lot of warnings like the following:

 warning: restricted gfp_t degrades to integer

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/gfp.h