Re: [PATCH] docs: kdoc: strip DOMAIN_NS() wrapper in function prototypes
From: Jonathan Corbet
Date: Wed Oct 14 2026 - 13:24:52 EST
Omokefe Emmanuel Onanaroghene <emmaonana18@xxxxxxxxx> writes:
> kernel-doc fails to parse functions whose names are wrapped in the
> DOMAIN_NS() namespace macro, e.g. in
> drivers/iommu/generic_pt/iommu_pt.h:217:
>
> ... expecting prototype for iova_to_phys(). Prototype was for
> DOMAIN_NS() instead
>
> function_xforms is the designated place for unwrapping function-name
> macros, but it has no entry for DOMAIN_NS(), so the macro name is kept
> as the prototype and the real name leaks into the parameter list.
>
> Add a transform expanding DOMAIN_NS(op) to op, following the existing
> DEFINE_IDTENTRY_IRQ precedent.
>
> Add a regression test for the wrapped iova_to_phys() declaration.
>
> Signed-off-by: Omokefe Emmanuel Onanaroghene <emmaonana18@xxxxxxxxx>
> ---
> tools/lib/python/kdoc/xforms_lists.py | 6 ++++++
> tools/unittests/test_kdoc_parser.py | 22 ++++++++++++++++++++++
> 2 files changed, 28 insertions(+)
Neither of these patches applies to docs-next...what did you base them
on?
jon