[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/5] checkpatch: reduce MAINTAINERS update message f
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 5/5] checkpatch: reduce MAINTAINERS update message frequency |
Date: |
Thu, 19 Apr 2018 17:11:05 +0800 |
From: Joe Perches <address@hidden>
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 <address@hidden>
Signed-off-by: Andrew Morton <address@hidden>
Signed-off-by: Linus Torvalds <address@hidden>
(cherry picked from e0d975b1b439c4fef58fbc306c542c94f48bb849)
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
scripts/checkpatch.pl | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 95ba64f3a5..1c20c683e8 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1389,6 +1389,12 @@ sub process {
}
}
+# 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 for added, moved or deleted files
if (!$reported_maintainer_file && !$in_commit_log &&
($line =~ /^(?:new|deleted) file mode\s*\d+\s*$/ ||
--
2.14.3
- [Qemu-devel] [PATCH 0/5] checkpatch: backport UTF-8 fixes and MAINTAINERS check, Stefan Hajnoczi, 2018/04/19
- [Qemu-devel] [PATCH 2/5] checkpatch: check utf-8 content from a commit log when it's missing from charset, Stefan Hajnoczi, 2018/04/19
- [Qemu-devel] [PATCH 1/5] checkpatch: add a --strict check for utf-8 in commit logs, Stefan Hajnoczi, 2018/04/19
- [Qemu-devel] [PATCH 5/5] checkpatch: reduce MAINTAINERS update message frequency,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 4/5] checkpatch: emit a warning on file add/move/delete, Stefan Hajnoczi, 2018/04/19
- [Qemu-devel] [PATCH 3/5] checkpatch: ignore email headers better, Stefan Hajnoczi, 2018/04/19
- Re: [Qemu-devel] [PATCH 0/5] checkpatch: backport UTF-8 fixes and MAINTAINERS check, no-reply, 2018/04/19