drm/amd/display: fix kernel-doc warnings in amdgpu_dm.h
Subsystems (3)
PATCH 1/1 drm/amd/display: fix kernel-doc warnings in amdgpu_dm.h
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.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h +2 -2
@@ -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.
Signature · 1 line
2.54.0 (Apple Git-157)
Quoted 23 lines · Pavee Zheng
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 processingDocumentation/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-docand 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 onamdgpu_dm.hbefore, 0 after; verified rendered HTML for both members),tools/docs/kernel-doc-none -internal -Wall -Werror, andscripts/checkpatch.pl--strict. Full-tree "make htmldocs" and kernel C compilation were not run.
Quoted 2 lines
Fixes e2c1e6c20106 ("drm/amd/display: Queue vblank control work to sleepable context")Signed-off-by Pavee Zheng <[email protected]>
Acked and applied. Thanks!
Alex
Quoted 28 lines
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h +2
-3@@ -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)