From: Joe Perches Date: Wed, 10 Dec 2014 23:51:49 +0000 (-0800) Subject: checkpatch: reduce MAINTAINERS update message frequency X-Git-Tag: firefly_0821_release~176^2~2734^2~76 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e0d975b1b439c4fef58fbc306c542c94f48bb849;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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) {