mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
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>
This commit is contained in:
parent
da5e67d0e1
commit
d42197c735
|
|
@ -103,6 +103,8 @@ class CTransforms:
|
|||
(CMatch("__no_context_analysis"), ""),
|
||||
(CMatch("__attribute_const__"), ""),
|
||||
(CMatch("__attribute__"), ""),
|
||||
(CMatch("STATIC_IFN_KUNIT"), ""),
|
||||
(CMatch("INLINE_IFN_KUNIT"), ""),
|
||||
|
||||
#
|
||||
# HACK: this is similar to process_export() hack. It is meant to
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user