linux/tools/lib/python/kdoc
Randy Dunlap d42197c735 kdoc: xforms: ignore special static/inline macros
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c contains 7 (for
now) functions that use STATIC_IFN_KUNIT or INLINE_IFN_KUNIT macros for
function qualifiers (static or not, inline or not).

These cause parse warnings from kernel-doc:
Invalid C declaration: Expected identifier in nested name, got keyword:
  struct [error at 29]
STATIC_IFN_KUNIT const struct drm_color_lut * __extract_blob_lut (const
  struct drm_property_blob *blob, uint32_t *size)

Handle these in kernel-doc to prevent multiple warnings.

Fixes: 647d1fd046 ("drm/amd/display: Add KUnit test for color helpers")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260612234458.1084156-1-rdunlap@infradead.org>
2026-06-23 14:41:52 -06:00
..
__init__.py docs: bring some order to our Python module hierarchy 2025-11-18 09:22:40 -07:00
c_lex.py docs: c_lex.py: store logger on its data 2026-03-25 13:36:46 -06:00
enrich_formatter.py docs: kdoc: enrich_formatter: Improve docstrings and comments 2026-01-23 11:37:38 -07:00
kdoc_files.py doc tools: better handle KBUILD_VERBOSE 2026-03-30 10:03:40 -06:00
kdoc_item.py docs: kdoc: better handle source when producing YAML output 2026-03-25 13:36:46 -06:00
kdoc_output.py docs: kdoc_output: raise an error if full_proto not available for var 2026-03-25 13:36:46 -06:00
kdoc_parser.py scripts/kernel-doc: Detect mismatched inline member documentation tags 2026-05-15 08:34:13 -06:00
kdoc_re.py docs: kdoc_re: better represent long regular expressions 2026-03-22 15:10:40 -06:00
kdoc_yaml_file.py docs: kdoc_yaml_file: use a better name for the tests 2026-03-25 13:36:46 -06:00
latex_fonts.py docs: kdoc: latex_fonts: Improve docstrings and comments 2026-01-23 11:37:38 -07:00
parse_data_structs.py docs: kdoc: parse_data_structs: Improve docstrings and comments 2026-01-23 11:37:38 -07:00
python_version.py docs: kdoc: python_version: Improve docstrings and comments 2026-01-23 11:37:38 -07:00
xforms_lists.py kdoc: xforms: ignore special static/inline macros 2026-06-23 14:41:52 -06:00