X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=scripts%2Fcheckpatch.pl;fp=scripts%2Fcheckpatch.pl;h=9bb4a421a8d0d1704e161715b6b2c8ecbb7e1fcc;hb=7e4915e78992ebd3cc031051dc23063bbf29e749;hp=8efce590d4b6ea528edc63ddb10c02537c1a79c4;hpb=d2e248e7b0068b940f3ca1fc26da603536a533db;p=~andy%2Flinux diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 8efce590d4b..9bb4a421a8d 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -4113,6 +4113,12 @@ sub process { "$1 uses number as first arg, sizeof is generally wrong\n" . $herecurr); } +# check for GFP_NOWAIT use + if ($line =~ /\b__GFP_NOFAIL\b/) { + WARN("__GFP_NOFAIL", + "Use of __GFP_NOFAIL is deprecated, no new users should be added\n" . $herecurr); + } + # check for multiple semicolons if ($line =~ /;\s*;\s*$/) { if (WARN("ONE_SEMICOLON",