Commit 7e4915e7 authored by David Rientjes's avatar David Rientjes Committed by Linus Torvalds
Browse files

checkpatch: add warning of future __GFP_NOFAIL use

gfp.h and page_alloc.c already specify that __GFP_NOFAIL is deprecated and
no new users should be added.

Add a warning to checkpatch to catch this.
Signed-off-by: default avatarDavid Rientjes <>
Cc: Joe Perches <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent d2e248e7
......@@ -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/) {
"Use of __GFP_NOFAIL is deprecated, no new users should be added\n" . $herecurr);
# check for multiple semicolons
if ($line =~ /;\s*;\s*$/) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment