diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkpatch.pl | 4 | ||||
-rwxr-xr-x | scripts/kernel-doc | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 31a731e06f50..b385bcbbf2f5 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -2133,7 +2133,7 @@ sub process { | |||
2133 | # Check for improperly formed commit descriptions | 2133 | # Check for improperly formed commit descriptions |
2134 | if ($in_commit_log && | 2134 | if ($in_commit_log && |
2135 | $line =~ /\bcommit\s+[0-9a-f]{5,}/i && | 2135 | $line =~ /\bcommit\s+[0-9a-f]{5,}/i && |
2136 | $line !~ /\b[Cc]ommit [0-9a-f]{12,16} \("/) { | 2136 | $line !~ /\b[Cc]ommit [0-9a-f]{12,40} \("/) { |
2137 | $line =~ /\b(c)ommit\s+([0-9a-f]{5,})/i; | 2137 | $line =~ /\b(c)ommit\s+([0-9a-f]{5,})/i; |
2138 | my $init_char = $1; | 2138 | my $init_char = $1; |
2139 | my $orig_commit = lc($2); | 2139 | my $orig_commit = lc($2); |
@@ -2141,7 +2141,7 @@ sub process { | |||
2141 | my $desc = 'commit description'; | 2141 | my $desc = 'commit description'; |
2142 | ($id, $desc) = git_commit_info($orig_commit, $id, $desc); | 2142 | ($id, $desc) = git_commit_info($orig_commit, $id, $desc); |
2143 | ERROR("GIT_COMMIT_ID", | 2143 | ERROR("GIT_COMMIT_ID", |
2144 | "Please use 12 to 16 chars for the git commit ID like: '${init_char}ommit $id (\"$desc\")'\n" . $herecurr); | 2144 | "Please use 12 or more chars for the git commit ID like: '${init_char}ommit $id (\"$desc\")'\n" . $herecurr); |
2145 | } | 2145 | } |
2146 | 2146 | ||
2147 | # Check for added, moved or deleted files | 2147 | # Check for added, moved or deleted files |
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 16a07cfa4d34..70bea942b413 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc | |||
@@ -2085,6 +2085,7 @@ sub dump_function($$) { | |||
2085 | $prototype =~ s/^noinline +//; | 2085 | $prototype =~ s/^noinline +//; |
2086 | $prototype =~ s/__init +//; | 2086 | $prototype =~ s/__init +//; |
2087 | $prototype =~ s/__init_or_module +//; | 2087 | $prototype =~ s/__init_or_module +//; |
2088 | $prototype =~ s/__meminit +//; | ||
2088 | $prototype =~ s/__must_check +//; | 2089 | $prototype =~ s/__must_check +//; |
2089 | $prototype =~ s/__weak +//; | 2090 | $prototype =~ s/__weak +//; |
2090 | my $define = $prototype =~ s/^#\s*define\s+//; #ak added | 2091 | my $define = $prototype =~ s/^#\s*define\s+//; #ak added |