diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 7f309f0789a08777fdae09dd14aa1d307787af64..41ecae81de9983ed7baea77e0a78b786820250e3 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2174,7 +2174,7 @@ sub process { } if ($found_file) { - if ($realfile =~ m@^(drivers/net/|net/)@) { + if ($realfile =~ m@^(?:drivers/net/|net/|drivers/staging/)@) { $check = 1; } else { $check = $check_orig;