drm/amdgpu: cleanup unused variable
authorShashank Sharma <shashank.sharma@amd.com>
Tue, 12 Mar 2024 15:23:46 +0000 (16:23 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Mar 2024 17:37:37 +0000 (13:37 -0400)
This patch removes an unused input variable in the MES
doorbell function.

Cc: Christian König <Christian.Koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <Christian.Koenig@amd.com>
Signed-off-by: Shashank Sharma <shashank.sharma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c

index a98e03e0a51f1f741895d253f896e76de29f9aec..eb75c524b4a6731defe2cbc2b472ca05b9ad5ee4 100644 (file)
@@ -40,7 +40,6 @@ int amdgpu_mes_doorbell_process_slice(struct amdgpu_device *adev)
 }
 
 static int amdgpu_mes_kernel_doorbell_get(struct amdgpu_device *adev,
-                                        struct amdgpu_mes_process *process,
                                         int ip_type, uint64_t *doorbell_index)
 {
        unsigned int offset, found;
@@ -65,7 +64,6 @@ static int amdgpu_mes_kernel_doorbell_get(struct amdgpu_device *adev,
 }
 
 static void amdgpu_mes_kernel_doorbell_free(struct amdgpu_device *adev,
-                                          struct amdgpu_mes_process *process,
                                           uint32_t doorbell_index)
 {
        unsigned int old, rel_index;
@@ -653,7 +651,7 @@ int amdgpu_mes_add_hw_queue(struct amdgpu_device *adev, int gang_id,
        *queue_id = queue->queue_id = r;
 
        /* allocate a doorbell index for the queue */
-       r = amdgpu_mes_kernel_doorbell_get(adev, gang->process,
+       r = amdgpu_mes_kernel_doorbell_get(adev,
                                          qprops->queue_type,
                                          &qprops->doorbell_off);
        if (r)
@@ -711,8 +709,7 @@ int amdgpu_mes_add_hw_queue(struct amdgpu_device *adev, int gang_id,
        return 0;
 
 clean_up_doorbell:
-       amdgpu_mes_kernel_doorbell_free(adev, gang->process,
-                                      qprops->doorbell_off);
+       amdgpu_mes_kernel_doorbell_free(adev, qprops->doorbell_off);
 clean_up_queue_id:
        spin_lock_irqsave(&adev->mes.queue_id_lock, flags);
        idr_remove(&adev->mes.queue_id_idr, queue->queue_id);
@@ -766,8 +763,7 @@ int amdgpu_mes_remove_hw_queue(struct amdgpu_device *adev, int queue_id)
                          queue_id);
 
        list_del(&queue->list);
-       amdgpu_mes_kernel_doorbell_free(adev, gang->process,
-                                      queue->doorbell_off);
+       amdgpu_mes_kernel_doorbell_free(adev, queue->doorbell_off);
        amdgpu_mes_unlock(&adev->mes);
 
        amdgpu_mes_queue_free_mqd(queue);