From: "Christian König" <christian.koenig@amd.com>
To: Omokefe Emmanuel Onanaroghene <emmaonana18@gmail.com>,
amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org
Cc: alexander.deucher@amd.com, airlied@gmail.com, simona@ffwll.ch,
skhan@linuxfoundation.org
Subject: Re: [PATCH] drm/amd/display: fix kernel-doc warnings for cgs register typedefs
Date: Fri, 2 Oct 2026 13:38:30 +0200 [thread overview]
Message-ID: <981f01e1-0c3b-4854-9d72-8bf22af9fc64@amd.com> (raw)
In-Reply-To: <20261002021750.13596-1-emmaonana18@gmail.com>
On 10/2/26 04:17, Omokefe Emmanuel Onanaroghene wrote:
> kernel-doc reports prototype mismatches for the cgs register accessor
> typedefs, whose comments do not use the documented typedef format, e.g.:
>
> drivers/gpu/drm/amd/include/cgs_common.h:89 ... expecting prototype
> for cgs_read_register(). Prototype was for uint32_t() instead
>
> Use the typedef comment format for all four accessors (also restoring
> the dropped _t suffix) and replace the wrong @offset with the real
> @space/@index params in the two indirect-register comments.
>
> Signed-off-by: Omokefe Emmanuel Onanaroghene <emmaonana18@gmail.com>
We should potentially just completely nuke those typedefs since they are actually an unnecessarily layer of indirection.
Regards,
Christian.
> ---
> drivers/gpu/drm/amd/include/cgs_common.h | 14 ++++++++------
> 1 file changed, 8 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/include/cgs_common.h b/drivers/gpu/drm/amd/include/cgs_common.h
> index f40b6a03fe63..3a25c3c75a3a 100644
> --- a/drivers/gpu/drm/amd/include/cgs_common.h
> +++ b/drivers/gpu/drm/amd/include/cgs_common.h
> @@ -81,7 +81,7 @@ struct cgs_firmware_info {
> typedef unsigned long cgs_handle_t;
>
> /**
> - * cgs_read_register() - Read an MMIO register
> + * typedef cgs_read_register_t - Read an MMIO register
> * @cgs_device: opaque device handle
> * @offset: register offset
> *
> @@ -90,7 +90,7 @@ typedef unsigned long cgs_handle_t;
> typedef uint32_t (*cgs_read_register_t)(struct cgs_device *cgs_device, unsigned offset);
>
> /**
> - * cgs_write_register() - Write an MMIO register
> + * typedef cgs_write_register_t - Write an MMIO register
> * @cgs_device: opaque device handle
> * @offset: register offset
> * @value: register value
> @@ -99,9 +99,10 @@ typedef void (*cgs_write_register_t)(struct cgs_device *cgs_device, unsigned off
> uint32_t value);
>
> /**
> - * cgs_read_ind_register() - Read an indirect register
> + * typedef cgs_read_ind_register_t - Read an indirect register
> * @cgs_device: opaque device handle
> - * @offset: register offset
> + * @space: indirect register space
> + * @index: register index
> *
> * Return: register value
> */
> @@ -109,9 +110,10 @@ typedef uint32_t (*cgs_read_ind_register_t)(struct cgs_device *cgs_device, enum
> unsigned index);
>
> /**
> - * cgs_write_ind_register() - Write an indirect register
> + * typedef cgs_write_ind_register_t - Write an indirect register
> * @cgs_device: opaque device handle
> - * @offset: register offset
> + * @space: indirect register space
> + * @index: register index
> * @value: register value
> */
> typedef void (*cgs_write_ind_register_t)(struct cgs_device *cgs_device, enum cgs_ind_reg space,
> --
> 2.43.0
>
next prev parent reply other threads:[~2026-10-02 11:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-02 2:17 Omokefe Emmanuel Onanaroghene
2026-10-02 11:38 ` Christian König [this message]
2026-10-02 20:46 ` Omokefe Emmanuel Onanaroghene
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=981f01e1-0c3b-4854-9d72-8bf22af9fc64@amd.com \
--to=christian.koenig@amd.com \
--cc=airlied@gmail.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=emmaonana18@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=simona@ffwll.ch \
--cc=skhan@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®