]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
docs: kdoc: clean up the create_parameter_list() "first arg" logic
authorJonathan Corbet <corbet@lwn.net>
Thu, 14 Aug 2025 15:40:31 +0000 (09:40 -0600)
committerJonathan Corbet <corbet@lwn.net>
Mon, 18 Aug 2025 16:19:19 +0000 (10:19 -0600)
commit05d72fe07242a8e4535aa52e0858f9198e668a41
treed439291d312c9bb9d93d9cf4337ba241c7f0b191
parentf51b42b99e1d35698e0277337fde2c15ccc29a2b
docs: kdoc: clean up the create_parameter_list() "first arg" logic

The logic for finding the name of the first in a series of variable names
is somewhat convoluted and, in the use of .extend(), actively buggy.
Document what is happening and simplify the logic.

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