drm/amdgpu: remove unused parameter in amdgpu_vmid_grab_idle
authorYifan Zhang <yifan1.zhang@amd.com>
Thu, 17 Aug 2023 06:53:37 +0000 (14:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Aug 2023 19:51:17 +0000 (15:51 -0400)
amdgpu_vm is not used in amdgpu_vmid_grab_idle.

Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c

index ff1ea99292fbf0185274b08c5b1b2c33689e0a44..ddd0891da116b9dd9de237643c0707bbf816e751 100644 (file)
@@ -188,7 +188,6 @@ static bool amdgpu_vmid_compatible(struct amdgpu_vmid *id,
 /**
  * amdgpu_vmid_grab_idle - grab idle VMID
  *
- * @vm: vm to allocate id for
  * @ring: ring we want to submit job to
  * @idle: resulting idle VMID
  * @fence: fence to wait for if no id could be grabbed
@@ -196,8 +195,7 @@ static bool amdgpu_vmid_compatible(struct amdgpu_vmid *id,
  * Try to find an idle VMID, if none is idle add a fence to wait to the sync
  * object. Returns -ENOMEM when we are out of memory.
  */
-static int amdgpu_vmid_grab_idle(struct amdgpu_vm *vm,
-                                struct amdgpu_ring *ring,
+static int amdgpu_vmid_grab_idle(struct amdgpu_ring *ring,
                                 struct amdgpu_vmid **idle,
                                 struct dma_fence **fence)
 {
@@ -405,7 +403,7 @@ int amdgpu_vmid_grab(struct amdgpu_vm *vm, struct amdgpu_ring *ring,
        int r = 0;
 
        mutex_lock(&id_mgr->lock);
-       r = amdgpu_vmid_grab_idle(vm, ring, &idle, fence);
+       r = amdgpu_vmid_grab_idle(ring, &idle, fence);
        if (r || !idle)
                goto error;