[PATCH 2/2] docs: maintainers_include.py: output subsystem name if available

From: Mauro Carvalho Chehab

Date: Sun Jul 12 2026 - 11:02:05 EST


If the subsystem name is available (which should always be true,
except if the parser has an issue), outputs the subsystem's name
at the profile entry.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>
---
Documentation/sphinx/maintainers_include.py | 2 ++
1 file changed, 2 insertions(+)

diff --git a/Documentation/sphinx/maintainers_include.py b/Documentation/sphinx/maintainers_include.py
index 7df73f66e13c..1596630a74ca 100755
--- a/Documentation/sphinx/maintainers_include.py
+++ b/Documentation/sphinx/maintainers_include.py
@@ -345,6 +345,8 @@ class MaintainersProfile(Include):
elif entry.startswith("`"):
new_entry = f"- {name}: {entry}\n"
self.warning(f"{profile}: Invalid 'P' tag: {entry}\n")
+ elif name:
+ new_entry = f"- {name}: {entry}\n"
else:
new_entry = f"- {entry}\n"

--
2.55.0