drm/amdgpu: fix unused variable ‘rq’
Subsystems (2)
PATCH 1/1 drm/amdgpu: fix unused variable ‘rq’
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;
^--- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +0 -1
@@ -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;
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1533631665-24945-1-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org
Christian König
Reviewed-byAm 07.08.2018 um 10:47 schrieb Huang Rui:
Quoted 10 lines
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 <[email protected]>
Quoted 9 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 1 - 1 file changed, 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c void amdgpu_ctx_priority_override(struct amdgpu_ctx *ctx, · line 399
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +0
-1@@ -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;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx