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)
commit16b56cf4b8a0fa9acc21bd2ad19839b917999b96
tree174dcc56e46bf5f939824031957270b4a9f7a9c6
parent36deb0be314702627aeae1f5737fc84d01dc26c6
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