drm/amdgpu: fix unused variable ‘rq’

Submitted by Huang, Ray on Aug. 7, 2018, 8:47 a.m.

Details

Message ID 1533631665-24945-1-git-send-email-ray.huang@amd.com
State New
Headers show
Series "drm/amdgpu: fix unused variable ‘rq’" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Huang, Ray Aug. 7, 2018, 8:47 a.m.
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@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 1 -
 1 file changed, 1 deletion(-)

Patch hide | download patch | download mbox

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;

Comments

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@amd.com>

Reviewed-by: Christian König <christian.koenig@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;