docs: kdoc: rework process_export() slightly
authorJonathan Corbet <corbet@lwn.net>
Fri, 27 Jun 2025 18:39:57 +0000 (12:39 -0600)
committerJonathan Corbet <corbet@lwn.net>
Tue, 1 Jul 2025 19:11:58 +0000 (13:11 -0600)
commitd06c54fd3e84e2e740c0cb2b5613a088e8a42e9a
tree3e0fa2be3b287c03ca6a36005a09dfe386e2a9ce
parent0aa3675c26b976db2b645385e8a7990270b39db0
docs: kdoc: rework process_export() slightly

Reorganize process_export() to eliminate duplicated code, don't look for
exports in states where we don't expect them, and don't bother with normal
state-machine processing if an export declaration has been found.

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