@samitouri / QOSamiQemu / commits / 33273219eb

scripts/checkpatch: Fix MAINTAINERS update warning with --terse

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> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> [DB: fix typo with missing string concat operator] Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>

Markus Armbruster committed Jan 9, 2026 at 08:12 UTC 33273219ebaf7840f8a3e21a04973e0757dd2fe8
1 file changed +3 -3
scripts/checkpatch.pl
+3 -3
@@ -1474,9 +1474,9 @@ sub process_file_list {
1474
1475 # If we don't see a MAINTAINERS update, prod the user to check
1476 if (int(@maybemaintainers) > 0 && !$sawmaintainers) {
1477 - WARN("added, moved or deleted file(s):\n\n " .
1478 - join("\n ", @maybemaintainers) .
1479 - "\n\nDoes MAINTAINERS need updating?\n");
1477 + WARN("added, moved or deleted file(s),"
1478 + . " does MAINTAINERS need updating?\n "
1479 + . join("\n ", @maybemaintainers));
1480 }
1481 }
1482