diff options
-rwxr-xr-x | scripts/checkpatch.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index b8b03aa52beb..9cdd147c1335 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -1583,7 +1583,8 @@ sub process { | |||
1583 | # Check for incorrect file permissions | 1583 | # Check for incorrect file permissions |
1584 | if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) { | 1584 | if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) { |
1585 | my $permhere = $here . "FILE: $realfile\n"; | 1585 | my $permhere = $here . "FILE: $realfile\n"; |
1586 | if ($realfile =~ /(Makefile|Kconfig|\.c|\.h|\.S|\.tmpl)$/) { | 1586 | if ($realfile !~ m@scripts/@ && |
1587 | $realfile !~ /\.(py|pl|awk|sh)$/) { | ||
1587 | ERROR("EXECUTE_PERMISSIONS", | 1588 | ERROR("EXECUTE_PERMISSIONS", |
1588 | "do not set execute permissions for source files\n" . $permhere); | 1589 | "do not set execute permissions for source files\n" . $permhere); |
1589 | } | 1590 | } |