mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] checkpatch: Reduce MAINTAINERS update message frequency
@ 2014-10-30 18:48 Joe Perches
  0 siblings, 0 replies; only message in thread
From: Joe Perches @ 2014-10-30 18:48 UTC (permalink / raw)
  To: Andrew Morton; +Cc: LKML

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>
---
 scripts/checkpatch.pl | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 24d6702..41e7db4 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) {



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-10-30 18:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-30 18:48 [PATCH] checkpatch: Reduce MAINTAINERS update message frequency Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome