Skip to content

Commit cc507c4

Browse files
mchehabJonathan Corbet
authored andcommitted
gpu: docs: amdgpu.rst: get rid of wrong kernel-doc markups
As reported by kernel-doc: ./drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c:1: warning: no structured comments found ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1: warning: no structured comments found Those files only contain /** * DOC: */ markups, but they're included twice there: one to parse such markup, and another one to parse internal functions. In the case of amdgpu_xgmi.c, as it has just one such markup, we can simply include the file once, and let it parse the entire file without passing arguments to kernel-doc. This should place everything altogether. For amdgpu_ras.c, however, we need to remove the kernel-doc with just internal. This should be re-introduced if this file ever gets new non-DOC markups. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Link: https://lore.kernel.org/r/bd070923591ae54f9587e7407b6291ac116952b2.1603791716.git.mchehab+huawei@kernel.org Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent ca766ff commit cc507c4

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎Documentation/gpu/amdgpu.rst‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ AMDGPU XGMI Support
8383
===================
8484

8585
.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
86-
:doc: AMDGPU XGMI Support
87-
88-
.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
89-
:internal:
9086

9187
AMDGPU RAS Support
9288
==================
@@ -124,9 +120,6 @@ RAS VRAM Bad Pages sysfs Interface
124120
.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
125121
:doc: AMDGPU RAS sysfs gpu_vram_bad_pages Interface
126122

127-
.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
128-
:internal:
129-
130123
Sample Code
131124
-----------
132125
Sample code for testing error injection can be found here:

0 commit comments

Comments
 (0)