projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19c146a
)
checkpatch: try to avoid poor patch subject lines
author
Joe Perches
<
[email protected]
>
Fri, 13 Feb 2015 22:39:02 +0000
(14:39 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sat, 14 Feb 2015 05:21:40 +0000
(21:21 -0800)
Naming the tool that found an issue in the subject line isn't very useful.
Emit a warning when a common tool (currently checkpatch, sparse or
smatch) is in the subject line.
Signed-off-by: Joe Perches <
[email protected]
>
Suggested-by: Al Viro <
[email protected]
>
Acked-by: Dan Carpenter <
[email protected]
>
Acked-by: Greg Kroah-Hartman <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
scripts/checkpatch.pl
patch
|
blob
|
history
diff --git
a/scripts/checkpatch.pl
b/scripts/checkpatch.pl
index 3642b0d5ad6a2103dcf0c27a7dd83a0857d1899a..9c720e1261e98fa9abcb6596070d9d88d92f1db6 100755
(executable)
--- a/
scripts/checkpatch.pl
+++ b/
scripts/checkpatch.pl
@@
-2170,6
+2170,13
@@
sub process {
}
}
+# Check email subject for common tools that don't need to be mentioned
+ if ($in_header_lines &&
+ $line =~ /^Subject:.*\b(?:checkpatch|sparse|smatch)\b[^:]/i) {
+ WARN("EMAIL_SUBJECT",
+ "A patch subject line should describe the change not the tool that found it\n" . $herecurr);
+ }
+
# Check for old stable address
if ($line =~ /^\s*cc:\s*.*<?\bstable\@kernel\.org\b>?.*$/i) {
ERROR("STABLE_ADDRESS",