From: Mauro Carvalho Chehab Date: Sat, 16 May 2026 17:33:34 +0000 (+0200) Subject: docs: maintainers_include: keep the last entry at the end X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=ff8b091864cfe535463ecafac00e229b5ca6738a;p=thirdparty%2Fkernel%2Flinux.git docs: maintainers_include: keep the last entry at the end The last maintainer's entry ("THE REST") is meant to be at the end. Ensure that. While here, use a case-insensitive sort to avoid placing "iSCSI" near the end. Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Jonathan Corbet Message-ID: --- diff --git a/Documentation/sphinx/maintainers_include.py b/Documentation/sphinx/maintainers_include.py index b8b7282ebe381..dc9f9e188ffa8 100755 --- a/Documentation/sphinx/maintainers_include.py +++ b/Documentation/sphinx/maintainers_include.py @@ -284,7 +284,12 @@ class MaintainersInclude(Include): self.state.document['maintainers_included'] = True - for name, fields in sorted(maint_parser.maint_entries.items()): + # Keep the last entry ("THE REST") in the end + entries = list(maint_parser.maint_entries.keys()) + entries = sorted(entries[:-1], key=str.casefold) + [entries[-1]] + + for name in entries: + fields = maint_parser.maint_entries[name] output += f" * - {name}\n" tag = "-" for field, lines in fields.items():