Skip to content

Commit

Permalink
checkpatch: make --strict the default for drivers/staging files and p…
Browse files Browse the repository at this point in the history
…atches

Making --strict the default for staging may help some people submit
patches without obvious defects.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Joe Perches authored and Linus Torvalds committed Sep 10, 2015
1 parent 86406b1 commit 7bd7e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7bd7e48

Please sign in to comment.