drm/amdgpu: Document parse_psp_v1_bin_descriptor
Subsystems (2)
PATCH 1/1 drm/amdgpu: Document parse_psp_v1_bin_descriptor
The kernel-doc comment of parse_psp_v1_bin_descriptor says what the function does but names neither of its two parameters and does not describe its return value, so kernel-doc reports:
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:4440 function parameter 'desc' not described in 'parse_psp_v1_bin_descriptor' drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:4440 function parameter 'hdr' not described in 'parse_psp_v1_bin_descriptor'
Describe both parameters and the return value. kernel-doc prints each of these warnings twice, so the file goes from four warning lines to none, and from six to none with -Wall.
Written with Hermes Agent, an LLM assistant; the author reviewed it and ran kernel-doc on the file with and without the change.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +3 -0
@@ -4435,6 +4435,9 @@ int psp_ring_cmd_submit(struct psp_context *psp,/** * parse_psp_v1_bin_descriptor - Populate struct psp_bin_desc from a * v1.0 PSP firmware header (standalone images such as ASD or TOC). +* @desc: the descriptor to populate +* @hdr: the firmware header to read +* Return: 0 on success, -EINVAL if either argument is NULL. */ static int parse_psp_v1_bin_descriptor (struct psp_bin_desc *desc,const struct psp_firmware_header_v1_0 *hdr)
base-commit: d0f871bfb831705d9f55479f5b2b40f636ea7b16
Signature · 1 line
2.53.0
reviewed and applied.
Thanks!
Quoted 42 lines · TAKANO Mitsuhiro
The kernel-doc comment of
parse_psp_v1_bin_descriptorsays what the function does but names neither of its two parameters and does not describe its return value, so kernel-doc reports:
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:4440function parameter 'desc' not described in 'parse_psp_v1_bin_descriptor'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:4440function parameter 'hdr' not described in 'parse_psp_v1_bin_descriptor'Describe both parameters and the return value. kernel-doc prints each of these warnings twice, so the file goes from four warning lines to none, and from six to none with -Wall.
Written with Hermes Agent, an LLM assistant; the author reviewed it and ran kernel-doc on the file with and without the change.
Fixes 581ada8f9bf3 ("drm/amdgpu: factor PSP v1.0 firmware bin descriptor parsing")Reported-by kernel test robot <[email protected]>Signed-off-by TAKANO Mitsuhiro <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +3
-0@@ -4435,6 +4435,9 @@ int psp_ring_cmd_submit(struct psp_context *psp,/** * parse_psp_v1_bin_descriptor - Populate struct psp_bin_desc from a * v1.0 PSP firmware header (standalone images such as ASD or TOC). +* @desc: the descriptor to populate +* @hdr: the firmware header to read +* Return: 0 on success, -EINVAL if either argument is NULL. */ static int parse_psp_v1_bin_descriptor (struct psp_bin_desc *desc,const struct psp_firmware_header_v1_0 *hdr)base-commit:
d0f871bfb831705d9f55479f5b2b40f636ea7b16--
2.53.0