* [PATCH] scripts/checkpatch: Fix MAINTAINERS update warning with --terse
@ 2026-01-09 7:12 Markus Armbruster
2026-01-09 8:09 ` Daniel P. Berrangé
0 siblings, 1 reply; 2+ messages in thread
From: Markus Armbruster @ 2026-01-09 7:12 UTC (permalink / raw)
To: qemu-devel; +Cc: berrange, clg, peter.maydell
We recently improved the MAINTAINERS update warning to show the files
that trigger it. Example:
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#105:
deleted file mode 100644
improved to
WARNING: added, moved or deleted file(s):
migration/threadinfo.h
migration/threadinfo.c
Does MAINTAINERS need updating?
Unfortunately, this made things worse with --terse, as only the first
line of each warning is shown then.
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
became
WARNING: added, moved or deleted file(s):
Adjust the warning text to
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
migration/threadinfo.h
migration/threadinfo.c
so we get the exact same warning as we used to with --terse.
Fixes: 1d745e6d9635 (scripts/checkpatch: use new hook for MAINTAINERS update check)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
scripts/checkpatch.pl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 3a9557417f..6f270becdc 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1473,9 +1473,9 @@ sub process_file_list {
# If we don't see a MAINTAINERS update, prod the user to check
if (int(@maybemaintainers) > 0 && !$sawmaintainers) {
- WARN("added, moved or deleted file(s):\n\n " .
- join("\n ", @maybemaintainers) .
- "\n\nDoes MAINTAINERS need updating?\n");
+ WARN("added, moved or deleted file(s),"
+ " does MAINTAINERS need updating?\n "
+ . join("\n ", @maybemaintainers));
}
}
--
2.52.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] scripts/checkpatch: Fix MAINTAINERS update warning with --terse
2026-01-09 7:12 [PATCH] scripts/checkpatch: Fix MAINTAINERS update warning with --terse Markus Armbruster
@ 2026-01-09 8:09 ` Daniel P. Berrangé
0 siblings, 0 replies; 2+ messages in thread
From: Daniel P. Berrangé @ 2026-01-09 8:09 UTC (permalink / raw)
To: Markus Armbruster; +Cc: qemu-devel, clg, peter.maydell
On Fri, Jan 09, 2026 at 08:12:17AM +0100, Markus Armbruster wrote:
> We recently improved the MAINTAINERS update warning to show the files
> that trigger it. Example:
>
> WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
> #105:
> deleted file mode 100644
>
> improved to
>
> WARNING: added, moved or deleted file(s):
>
> migration/threadinfo.h
> migration/threadinfo.c
>
> Does MAINTAINERS need updating?
>
> Unfortunately, this made things worse with --terse, as only the first
> line of each warning is shown then.
>
> WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
>
> became
>
> WARNING: added, moved or deleted file(s):
>
> Adjust the warning text to
>
> WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
> migration/threadinfo.h
> migration/threadinfo.c
>
> so we get the exact same warning as we used to with --terse.
>
> Fixes: 1d745e6d9635 (scripts/checkpatch: use new hook for MAINTAINERS update check)
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
> scripts/checkpatch.pl | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-01-09 8:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-09 7:12 [PATCH] scripts/checkpatch: Fix MAINTAINERS update warning with --terse Markus Armbruster
2026-01-09 8:09 ` Daniel P. Berrangé
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.