On Thu, Dec 3, 2026 at 9:11 AM Pavee Zheng <[email protected]> wrote:
>
> Add the missing trailing colons to the inline kernel-doc member comments
> for @sw_counter_lock and @use_sw_vblank_counter in struct
> amdgpu_display_manager. Without the colons, kernel-doc fails to parse
> both member descriptions and emits four warnings when processing
> Documentation/gpu/amdgpu/display/display-manager.rst:
>
>   492: Incorrect use of kernel-doc format: * @sw_counter_lock
>   499: Incorrect use of kernel-doc format: * @use_sw_vblank_counter
>   809: struct member 'sw_counter_lock' not described in
>        'amdgpu_display_manager'
>   809: struct member 'use_sw_vblank_counter' not described in
>        'amdgpu_display_manager'
>
> Detected with tools/docs/kernel-doc and an AI coding assistant
> (Antigravity/Gemini), which was also used to check sibling files and
> draft this patch and commit message. Verified in a Linux container
> (Sphinx 9.0.4) with "make SPHINXDIRS=gpu/amdgpu/display htmldocs"
> (4 warnings on amdgpu_dm.h before, 0 after; verified rendered HTML for
> both members), tools/docs/kernel-doc -none -internal -Wall -Werror, and
> scripts/checkpatch.pl --strict. Full-tree "make htmldocs" and kernel C
> compilation were not run.
>
> Fixes: e2c1e6c20106 ("drm/amd/display: Queue vblank control work to sleepable 
> context")
> Signed-off-by: Pavee Zheng <[email protected]>

Acked and applied.  Thanks!

Alex

> ---
>  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h 
> b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
> index ad7e7d1a5051..c34185641695 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
> @@ -490,14 +490,14 @@ struct amdgpu_display_manager {
>         struct mutex dc_lock;
>
>         /**
> -        * @sw_counter_lock
> +        * @sw_counter_lock:
>          *
>          * Guards sw_vblank counter.
>          */
>         spinlock_t sw_counter_lock;
>
>         /**
> -        * @use_sw_vblank_counter
> +        * @use_sw_vblank_counter:
>          *
>          * use sw vblank counter instead of hw vblank counter. Can only be set
>          * under dc_lock and sw_counter_lock.
> --
> 2.54.0 (Apple Git-157)
>

Reply via email to