From: Joe Perches <joe@perches.com>
Date: Wed, 9 Sep 2015 22:37:44 +0000 (-0700)
Subject: checkpatch: make --strict the default for drivers/staging files and patches
X-Git-Tag: v4.3-rc1~22^2~43
X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7bd7e483c27d884c2f59e286e42623abba413f83;p=users%2Fjedix%2Flinux-maple.git

checkpatch: make --strict the default for drivers/staging files and patches

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>
---

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 7f309f0789a0..41ecae81de99 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;