]> git.ipfire.org Git - thirdparty/linux.git/commit
docs: kernel-doc.rst: Parse DEFINE_ macros without prefixes
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 16 Dec 2025 14:26:17 +0000 (15:26 +0100)
committerJonathan Corbet <corbet@lwn.net>
Mon, 22 Dec 2025 21:43:25 +0000 (14:43 -0700)
commitaaacd70fb77afe75075e8bdf8e493b0af42eeabd
tree95566c9ceee76d92fd46a5d73ebbbbe6ac96df55
parentb580fa304c858e35020f02ed733fa1108fa6de48
docs: kernel-doc.rst: Parse DEFINE_ macros without prefixes

Currently, the logic for vars require a
type DEFINE_foo();

where type is usually "static".

Make the logic more generic.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Closes: https://lore.kernel.org/linux-doc/e1dad7e4-a0ca-4be6-a33c-97b75175c12f@infradead.org/
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <be16e087cbc065fbd041fb6d6f8fa5cf0426cca5.1765894964.git.mchehab+huawei@kernel.org>
tools/lib/python/kdoc/kdoc_parser.py