summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches2014-12-11 00:51:49 +0100
committerLinus Torvalds2014-12-11 02:41:12 +0100
commite0d975b1b439c4fef58fbc306c542c94f48bb849 (patch)
treec21a0de696fa0dd139dc2a3a5b954c7fa01f6771
parentcheckpatch: try to avoid mask and shift errors (diff)
downloadkernel-qcow2-linux-e0d975b1b439c4fef58fbc306c542c94f48bb849.tar.gz
kernel-qcow2-linux-e0d975b1b439c4fef58fbc306c542c94f48bb849.tar.xz
kernel-qcow2-linux-e0d975b1b439c4fef58fbc306c542c94f48bb849.zip
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>
-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 {
$in_commit_log = 0;
}
+# Check if MAINTAINERS is being updated. If so, there's probably no need to
+# emit the "does MAINTAINERS need updating?" message on file add/move/delete
+ if ($line =~ /^\s*MAINTAINERS\s*\|/) {
+ $reported_maintainer_file = 1;
+ }
+
# Check signature styles
if (!$in_header_lines &&
$line =~ /^(\s*)([a-z0-9_-]+by:|$signature_tags)(\s*)(.*)/i) {