Re: [PATCH] drm/amdgpu: fix unused variable ‘rq’

Christian König ckoenig.leichtzumerken at gmail.com
Tue Aug 7 09:23:42 UTC 2018


Am 07.08.2018 um 10:47 schrieb Huang Rui:
> This patch is to fix the warning to remove unused variable.
>
> /home/ray/linux/drivers/gpu/drm//amd/amdgpu/amdgpu_ctx.c:
> In function ‘amdgpu_ctx_priority_override’:
> /home/ray/linux/drivers/gpu/drm//amd/amdgpu/amdgpu_ctx.c:397:23:
> warning: unused variable ‘rq’ [-Wunused-variable]
>    struct drm_sched_rq *rq;
>                         ^
>
> Signed-off-by: Huang Rui <ray.huang at amd.com>

Reviewed-by: Christian König <christian.koenig at amd.com>

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 1 -
>   1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
> index 9fcc14e..02d563c 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
> @@ -394,7 +394,6 @@ void amdgpu_ctx_priority_override(struct amdgpu_ctx *ctx,
>   {
>   	int i;
>   	struct amdgpu_device *adev = ctx->adev;
> -	struct drm_sched_rq *rq;
>   	struct drm_sched_entity *entity;
>   	struct amdgpu_ring *ring;
>   	enum drm_sched_priority ctx_prio;



More information about the amd-gfx mailing list