docs: kdoc: drop "sectionlist"
authorJonathan Corbet <corbet@lwn.net>
Tue, 1 Jul 2025 22:21:24 +0000 (16:21 -0600)
committerJonathan Corbet <corbet@lwn.net>
Tue, 15 Jul 2025 19:43:07 +0000 (13:43 -0600)
commit8d9d122915492ea6984f32e5df30cef5c582f062
tree8e39564943cca107e96ec911fd0f5b629d6bd247
parent703f9074a8e10ac3fe939025233acb7c47529608
docs: kdoc: drop "sectionlist"

Python dicts (as of 3.7) are guaranteed to remember the insertion order of
items, so we do not need a separate list for that purpose.  Drop the
per-entry sectionlist variable and just rely on native dict ordering.

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