docs: kdoc: clean up check_sections()
authorJonathan Corbet <corbet@lwn.net>
Wed, 2 Jul 2025 20:53:32 +0000 (14:53 -0600)
committerJonathan Corbet <corbet@lwn.net>
Tue, 15 Jul 2025 19:43:30 +0000 (13:43 -0600)
commit636d4d9ec641025b98e8df4623a77ecc09026209
treeebf8250b0a52219554bd361849a763a7c7e591ab
parentbd5628bf60abd6f283d1fd8bdcff45c272971c6b
docs: kdoc: clean up check_sections()

entry.sectcheck is just a duplicate of our list of sections that is only
passed to check_sections(); its main purpose seems to be to avoid checking
the special named sections.  Rework check_sections() to not use that field
(which is then deleted), tocheck for the known sections directly, and
tighten up the logic in general.

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