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> --- 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; -- 2.7.4