[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CADnq5_My4OM4CvDHHWN3MxVKAon78pvbw71mO2yzer-FdxYu1w@mail.gmail.com>
Date: Tue, 11 Feb 2020 11:27:06 -0500
From: Alex Deucher <alexdeucher@...il.com>
To: YueHaibing <yuehaibing@...wei.com>
Cc: "Wentland, Harry" <harry.wentland@....com>,
"Leo (Sunpeng) Li" <sunpeng.li@....com>,
"Deucher, Alexander" <alexander.deucher@....com>,
Christian Koenig <christian.koenig@....com>,
Chunming Zhou <David1.Zhou@....com>,
Dave Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
Bhawanpreet Lakha <Bhawanpreet.Lakha@....com>,
Anthony Koo <Anthony.Koo@....com>,
"Cyr, Aric" <aric.cyr@....com>,
Dmytro Laktyushkin <Dmytro.Laktyushkin@....com>,
Eric Yang <Eric.Yang2@....com>,
Yongqiang Sun <yongqiang.sun@....com>,
Martin Leung <martin.leung@....com>,
Charlene Liu <charlene.liu@....com>,
Maling list - DRI developers
<dri-devel@...ts.freedesktop.org>,
amd-gfx list <amd-gfx@...ts.freedesktop.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [RFC PATCH -next] drm/amd/display: Remove set but not unused
variable 'stream_status'
On Mon, Feb 10, 2020 at 10:38 AM YueHaibing <yuehaibing@...wei.com> wrote:
>
> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:
> In function dcn10_post_unlock_program_front_end:
> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:2623:29:
> warning: variable stream_status set but not used [-Wunused-but-set-variable]
>
> commit bbf5f6c3f83b ("drm/amd/display: Split program front end part that occur outside lock")
> involved this unused variable.
>
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
Applied. Thanks!
Alex
> ---
> drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
> index 42fcfee..b2ed0fa 100644
> --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
> +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
> @@ -2610,7 +2610,7 @@ void dcn10_post_unlock_program_front_end(
> struct dc *dc,
> struct dc_state *context)
> {
> - int i, j;
> + int i;
>
> DC_LOGGER_INIT(dc->ctx->logger);
>
> @@ -2620,14 +2620,8 @@ void dcn10_post_unlock_program_front_end(
> if (!pipe_ctx->top_pipe &&
> !pipe_ctx->prev_odm_pipe &&
> pipe_ctx->stream) {
> - struct dc_stream_status *stream_status = NULL;
> struct timing_generator *tg = pipe_ctx->stream_res.tg;
>
> - for (j = 0; j < context->stream_count; j++) {
> - if (pipe_ctx->stream == context->streams[j])
> - stream_status = &context->stream_status[j];
> - }
> -
> if (context->stream_status[i].plane_count == 0)
> false_optc_underflow_wa(dc, pipe_ctx->stream, tg);
> }
> --
> 2.7.4
>
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@...ts.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
Powered by blists - more mailing lists