* [PATCH] drm/amd/display: Fix three kernel-doc warnings in dc.h
@ 2026-11-25 19:38 TAKANO Mitsuhiro
2026-12-04 19:00 ` George Zhang
0 siblings, 1 reply; 3+ messages in thread
From: TAKANO Mitsuhiro @ 2026-11-25 19:38 UTC (permalink / raw)
To: Harry Wentland, amd-gfx
Cc: Leo Li, Rodrigo Siqueira, Alex Deucher, dri-devel, linux-kernel,
TAKANO Mitsuhiro
kernel-doc reports three problems in the DC interface header:
Warning: dc.h:329 struct member 'max_gamut_remap_coeff' not described
in 'mpc_color_caps'
Warning: dc.h:2225 struct member 'u' not described in
'dc_probe_status'
Warning: dc.h:3883 This comment starts with '/**', but isn't a
kernel-doc comment.
Describe the two members, and turn the comment above the panel
polarity helpers into a plain one, since it documents no symbol.
Verification: kernel-doc -none drivers/gpu/drm/amd/display/dc/dc.h
prints three warnings before the change and nothing after it.
Signed-off-by: TAKANO Mitsuhiro <takano32@gmail.com>
---
drivers/gpu/drm/amd/display/dc/dc.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h
index d3c484f45333..b8b2af988b71 100644
--- a/drivers/gpu/drm/amd/display/dc/dc.h
+++ b/drivers/gpu/drm/amd/display/dc/dc.h
@@ -314,6 +314,7 @@ struct lut3d_caps {
* @mcm_3d_lut_caps: HW support cap for MCM LUT memory
* @rmcm_3d_lut_caps: HW support cap for RMCM LUT memory
* @preblend: whether color manager supports preblend with MPC
+ * @max_gamut_remap_coeff: largest coefficient the gamut remap matrix allows
*/
struct mpc_color_caps {
uint16_t gamut_remap : 1;
@@ -2207,6 +2208,7 @@ struct dc_probe_latencies {
* @valid: true if a measurement was latched.
* @measuring: true if the hardware counter is currently running.
* @type: type of the probe that produced this result.
+ * @u: the result, whose member depends on @type.
* @u.bandwidth_mbps: peak BW in Mbps (DC_PROBE_PEAK_MEM_BW).
* @u.latency: min/max/avg memory latency in ns (DC_PROBE_MEM_LATENCY),
* stored as struct dc_probe_latencies.
@@ -3880,7 +3882,7 @@ unsigned int dc_override_memory_bandwidth_request(
struct dc *dc,
unsigned int bw_mbps);
-/**
+/*
* Panel Polarity Control
*/
void dc_link_set_panel_polarity_enable(struct dc_link *link, bool enable);
base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
--
2.53.0
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] drm/amd/display: Fix three kernel-doc warnings in dc.h
2026-11-25 19:38 [PATCH] drm/amd/display: Fix three kernel-doc warnings in dc.h TAKANO Mitsuhiro
@ 2026-12-04 19:00 ` George Zhang
2026-12-06 0:56 ` TAKANO Mitsuhiro
0 siblings, 1 reply; 3+ messages in thread
From: George Zhang @ 2026-12-04 19:00 UTC (permalink / raw)
To: TAKANO Mitsuhiro, Harry Wentland, amd-gfx
Cc: Leo Li, Rodrigo Siqueira, Alex Deucher, dri-devel, linux-kernel
On 11/25/26 14:38, TAKANO Mitsuhiro wrote:
> kernel-doc reports three problems in the DC interface header:
>
> Warning: dc.h:329 struct member 'max_gamut_remap_coeff' not described
> in 'mpc_color_caps'
> Warning: dc.h:2225 struct member 'u' not described in
> 'dc_probe_status'
> Warning: dc.h:3883 This comment starts with '/**', but isn't a
> kernel-doc comment.
>
> Describe the two members, and turn the comment above the panel
> polarity helpers into a plain one, since it documents no symbol.
>
> Verification: kernel-doc -none drivers/gpu/drm/amd/display/dc/dc.h
> prints three warnings before the change and nothing after it.
>
> Signed-off-by: TAKANO Mitsuhiro <takano32@gmail.com>
Reviewed-by: George Zhang <george.zhang@amd.com>
> ---
> drivers/gpu/drm/amd/display/dc/dc.h | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h
> index d3c484f45333..b8b2af988b71 100644
> --- a/drivers/gpu/drm/amd/display/dc/dc.h
> +++ b/drivers/gpu/drm/amd/display/dc/dc.h
> @@ -314,6 +314,7 @@ struct lut3d_caps {
> * @mcm_3d_lut_caps: HW support cap for MCM LUT memory
> * @rmcm_3d_lut_caps: HW support cap for RMCM LUT memory
> * @preblend: whether color manager supports preblend with MPC
> + * @max_gamut_remap_coeff: largest coefficient the gamut remap matrix allows
> */
> struct mpc_color_caps {
> uint16_t gamut_remap : 1;
> @@ -2207,6 +2208,7 @@ struct dc_probe_latencies {
> * @valid: true if a measurement was latched.
> * @measuring: true if the hardware counter is currently running.
> * @type: type of the probe that produced this result.
> + * @u: the result, whose member depends on @type.
> * @u.bandwidth_mbps: peak BW in Mbps (DC_PROBE_PEAK_MEM_BW).
> * @u.latency: min/max/avg memory latency in ns (DC_PROBE_MEM_LATENCY),
> * stored as struct dc_probe_latencies.
> @@ -3880,7 +3882,7 @@ unsigned int dc_override_memory_bandwidth_request(
> struct dc *dc,
> unsigned int bw_mbps);
>
> -/**
> +/*
> * Panel Polarity Control
> */
> void dc_link_set_panel_polarity_enable(struct dc_link *link, bool enable);
>
> base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] drm/amd/display: Fix three kernel-doc warnings in dc.h
2026-12-04 19:00 ` George Zhang
@ 2026-12-06 0:56 ` TAKANO Mitsuhiro
0 siblings, 0 replies; 3+ messages in thread
From: TAKANO Mitsuhiro @ 2026-12-06 0:56 UTC (permalink / raw)
To: George Zhang, Harry Wentland, Alex Deucher
Cc: Leo Li, Rodrigo Siqueira, amd-gfx, dri-devel, linux-kernel,
TAKANO Mitsuhiro
Hi George,
Thanks for reviewing all of these!
Just a quick heads-up to avoid a conflict when applying: this patch
overlaps with the earlier 2-patch v2 series ("Document the union in
dc_probe_status" and "Document max_gamut_remap_coeff") that you also
reviewed. This single patch covers both of those members plus the
stray /** comment on line 3883, so please apply either this patch on
its own or the v2 series (skipping the overlapping hunks).
Thanks,
Mitsuhiro
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-12-06 0:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 19:38 [PATCH] drm/amd/display: Fix three kernel-doc warnings in dc.h TAKANO Mitsuhiro
2026-12-04 19:00 ` George Zhang
2026-12-06 0:56 ` 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®