summaryrefslogtreecommitdiff
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-06-05 03:12:10 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-05 03:54:20 +0400
commit9b3189eb424044e51c8847063b2ba314b57b6ed2 (patch)
treed9a670f00a28f8297f5b8114d691c025581c0ef3 /scripts/checkpatch.pl
parent9819cf252a0fad1bf46aac8a051cf30426e073ee (diff)
downloadlinux-9b3189eb424044e51c8847063b2ba314b57b6ed2.tar.xz
checkpatch: check stable email address
It should be stable@vger.kernel.org, not stable@kernel.org. Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index f354ae619da0..0ef4ae1de8ee 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1944,6 +1944,12 @@ sub process {
}
}
+# Check for old stable address
+ if ($line =~ /^\s*cc:\s*.*<?\bstable\@kernel\.org\b>?.*$/i) {
+ ERROR("STABLE_ADDRESS",
+ "The 'stable' address should be 'stable\@vger.kernel.org'\n" . $herecurr);
+ }
+
# Check for unwanted Gerrit info
if ($in_commit_log && $line =~ /^\s*change-id:/i) {
ERROR("GERRIT_CHANGE_ID",