scripts: fix gfp-translate for recent changes to gfp.h
commit27af038494ef2f3f3a23aa040bfc1ea29d99d76d
authorMel Gorman <mel@csn.ul.ie>
Wed, 24 Nov 2010 20:57:17 +0000 (24 12:57 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Nov 2010 21:50:49 +0000 (25 06:50 +0900)
tree9cd8faac970a73ed3dacda49a3e90ccf8599e37b
parentda905873effecd1c0166e578bc4b5006f041b18b
scripts: fix gfp-translate for recent changes to gfp.h

The recent changes to gfp.h to satisfy sparse broke scripts/gfp-translate.
This patch fixes it up to work with old and new versions of gfp.h .

[akpm@linux-foundation.org: use `grep -q', per WANG Cong]
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Cc: Namhyung Kim <namhyung@gmail.com>
Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/gfp-translate