Re: [PATCH] drm/amd/display: Fix unused variable ‘should_lock_all_pipes’

Hamza Mahfooz hamza.mahfooz at amd.com
Tue Jun 6 14:26:52 UTC 2023


On 6/6/23 08:06, Srinivasan Shanmugam wrote:
> Fix below compilation error:
> 
> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:3524:7: error: unused variable 'should_lock_all_pipes' [-Werror,-Wunused-variable]
>          bool should_lock_all_pipes = (update_type != UPDATE_TYPE_FAST);
> 
> Cc: Rodrigo Siqueira <Rodrigo.Siqueira at amd.com>
> Cc: Aurabindo Pillai <aurabindo.pillai at amd.com>
> Cc: Harry Wentland <harry.wentland at amd.com>
> Cc: Alex Deucher <alexander.deucher at amd.com>
> Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam at amd.com>

Reviewed-by: Hamza Mahfooz <hamza.mahfooz at amd.com>

> ---
>   drivers/gpu/drm/amd/display/dc/core/dc.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
> index 172bae983425..5e18fc0c79d6 100644
> --- a/drivers/gpu/drm/amd/display/dc/core/dc.c
> +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
> @@ -3521,7 +3521,6 @@ static void commit_planes_for_stream_fast(struct dc *dc,
>   {
>   	int i, j;
>   	struct pipe_ctx *top_pipe_to_program = NULL;
> -	bool should_lock_all_pipes = (update_type != UPDATE_TYPE_FAST);
>   	dc_z10_restore(dc);
>   
>   	for (j = 0; j < dc->res_pool->pipe_count; j++) {
-- 
Hamza



More information about the amd-gfx mailing list