aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-12-10 18:51:49 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-10 20:41:12 -0500
commite0d975b1b439c4fef58fbc306c542c94f48bb849 (patch)
treec21a0de696fa0dd139dc2a3a5b954c7fa01f6771 /scripts
parentabb08a53883ed7afbe3f0ac9444805042f473a63 (diff)
checkpatch: reduce MAINTAINERS update message frequency
When files are being added/moved/deleted and a patch contains an update to the MAINTAINERS file, assume it's to update the MAINTAINERS file correctly and do not emit the "does MAINTAINERS need updating?" message. Reported by many people. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 24d6702a95c2..41e7db451cc0 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2082,6 +2082,12 @@ sub process {
2082 $in_commit_log = 0; 2082 $in_commit_log = 0;
2083 } 2083 }
2084 2084
2085# Check if MAINTAINERS is being updated. If so, there's probably no need to
2086# emit the "does MAINTAINERS need updating?" message on file add/move/delete
2087 if ($line =~ /^\s*MAINTAINERS\s*\|/) {
2088 $reported_maintainer_file = 1;
2089 }
2090
2085# Check signature styles 2091# Check signature styles
2086 if (!$in_header_lines && 2092 if (!$in_header_lines &&
2087 $line =~ /^(\s*)([a-z0-9_-]+by:|$signature_tags)(\s*)(.*)/i) { 2093 $line =~ /^(\s*)([a-z0-9_-]+by:|$signature_tags)(\s*)(.*)/i) {