[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5a99adc26963c0a64fe6de41b87c6244@codeaurora.org>
Date: Mon, 26 Oct 2020 13:52:52 -0700
From: abhinavk@...eaurora.org
To: Arnd Bergmann <arnd@...nel.org>
Cc: Rob Clark <robdclark@...il.com>, Sean Paul <sean@...rly.run>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
Jonathan Marek <jonathan@...ek.ca>,
Rob Clark <robdclark@...omium.org>,
Krishna Manikandan <mkrishn@...eaurora.org>,
Shubhashree Dhar <dhar@...eaurora.org>,
Arnd Bergmann <arnd@...db.de>,
Raviteja Tamatam <travitej@...eaurora.org>,
linux-arm-msm@...r.kernel.org, linux-kernel@...r.kernel.org,
dri-devel@...ts.freedesktop.org,
Stephen Boyd <swboyd@...omium.org>,
Kalyan Thota <kalyan_t@...eaurora.org>,
freedreno@...ts.freedesktop.org
Subject: Re: [Freedreno] [PATCH 3/4] drm/msm: fix -Woverride-init warning
On 2020-10-26 12:41, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@...db.de>
>
> There is one harmless duplicate initialization that causes a warning
> with 'make W=1':
>
> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:122:19: warning:
> initialized field overwritten [-Woverride-init]
> 122 | .max_linewidth = 4096,
> | ^~~~
> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:122:19: note: (near
> initialization for 'sm8250_dpu_caps.max_linewidth')
>
> Remove one of the two identical initializers to avoid the warning.
>
> Fixes: af776a3e1c30 ("drm/msm/dpu: add SM8250 to hw catalog")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
Reviewed-by: Abhinav Kumar <abhinavk@...eaurora.org>
> ---
> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
> b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
> index 60b304b72b7c..9c23f814ccaf 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
> @@ -111,7 +111,6 @@ static const struct dpu_caps sm8150_dpu_caps = {
> static const struct dpu_caps sm8250_dpu_caps = {
> .max_mixer_width = DEFAULT_DPU_OUTPUT_LINE_WIDTH,
> .max_mixer_blendstages = 0xb,
> - .max_linewidth = 4096,
> .qseed_type = DPU_SSPP_SCALER_QSEED3, /* TODO: qseed3 lite */
> .smart_dma_rev = DPU_SSPP_SMART_DMA_V2, /* TODO: v2.5 */
> .ubwc_version = DPU_HW_UBWC_VER_40,
Powered by blists - more mailing lists