diff options
-rwxr-xr-x | scripts/checkpatch.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 8efce590d4b6..9bb4a421a8d0 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -4113,6 +4113,12 @@ sub process { | |||
4113 | "$1 uses number as first arg, sizeof is generally wrong\n" . $herecurr); | 4113 | "$1 uses number as first arg, sizeof is generally wrong\n" . $herecurr); |
4114 | } | 4114 | } |
4115 | 4115 | ||
4116 | # check for GFP_NOWAIT use | ||
4117 | if ($line =~ /\b__GFP_NOFAIL\b/) { | ||
4118 | WARN("__GFP_NOFAIL", | ||
4119 | "Use of __GFP_NOFAIL is deprecated, no new users should be added\n" . $herecurr); | ||
4120 | } | ||
4121 | |||
4116 | # check for multiple semicolons | 4122 | # check for multiple semicolons |
4117 | if ($line =~ /;\s*;\s*$/) { | 4123 | if ($line =~ /;\s*;\s*$/) { |
4118 | if (WARN("ONE_SEMICOLON", | 4124 | if (WARN("ONE_SEMICOLON", |