* [PATCH] drm/amdgpu: Document parse_psp_v1_bin_descriptor
@ 2026-11-21 3:02 TAKANO Mitsuhiro
0 siblings, 0 replies; only message in thread
From: TAKANO Mitsuhiro @ 2026-11-21 3:02 UTC (permalink / raw)
To: amd-gfx, Alex Deucher, Christian König
Cc: David Airlie, Simona Vetter, Candice Li, dri-devel, linux-kernel,
TAKANO Mitsuhiro, kernel test robot
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.
Fixes: 581ada8f9bf3 ("drm/amdgpu: factor PSP v1.0 firmware bin descriptor parsing")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202608210800.S15sl61g-lkp@intel.com/
Signed-off-by: TAKANO Mitsuhiro <takano32@gmail.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
index 82a2684dbd2e..3fd93cb1e634 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-21 3:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-21 3:02 [PATCH] drm/amdgpu: Document parse_psp_v1_bin_descriptor TAKANO Mitsuhiro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®