Skip to contentSkip to conversation

drm/amdgpu: fix unused variable ‘rq’

PATCH In review Huang Rui 2 participants 2 messages Aug 7, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Huang Rui

author
#0 lore raw

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
index 9fcc14e..02d563c 100644
@@ -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

Reviewed-by
#2 lore raw

Am 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;
                        ^
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
index 9fcc14e..02d563c 100644

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