diff --git a/[refs] b/[refs] index 15b1b38a26cf..57e68653ce76 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a6962d7273d8f89c136fe9ea3d61d7f47adcd823 +refs/heads/master: 04db4d25d9eaa58140520f976994d1a601129c00 diff --git a/trunk/scripts/checkpatch.pl b/trunk/scripts/checkpatch.pl index b8b03aa52beb..9cdd147c1335 100755 --- a/trunk/scripts/checkpatch.pl +++ b/trunk/scripts/checkpatch.pl @@ -1583,7 +1583,8 @@ sub process { # Check for incorrect file permissions if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) { my $permhere = $here . "FILE: $realfile\n"; - if ($realfile =~ /(Makefile|Kconfig|\.c|\.h|\.S|\.tmpl)$/) { + if ($realfile !~ m@scripts/@ && + $realfile !~ /\.(py|pl|awk|sh)$/) { ERROR("EXECUTE_PERMISSIONS", "do not set execute permissions for source files\n" . $permhere); }