docs: kdoc: remove the KernelEntry::descr pseudo member
authorJonathan Corbet <corbet@lwn.net>
Fri, 6 Jun 2025 16:34:35 +0000 (10:34 -0600)
committerJonathan Corbet <corbet@lwn.net>
Mon, 9 Jun 2025 20:37:17 +0000 (14:37 -0600)
commitf9b4cf2e8518387d4c512d934137dc6968759ec4
treeab9991d8d4c8ad83b196b4b4b5d3c416b92cecca
parent8f4650fe1a74e68f5c6715413a5a26aa1564780d
docs: kdoc: remove the KernelEntry::descr pseudo member

The entry.descr value used in process_name() is not actually a member of
the KernelEntry class; it is a bit of local state.  So just manage it
locally.

A trim_whitespace() helper was added to clean up the code slightly.

Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20250606163438.229916-7-corbet@lwn.net
scripts/lib/kdoc/kdoc_parser.py