drm/amdkfd: Make deallocate_hiq_sdma_mqd static
authorYueHaibing <yuehaibing@huawei.com>
Sat, 25 May 2019 12:51:09 +0000 (20:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Aug 2019 22:25:10 +0000 (17:25 -0500)
Fix sparse warning:

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c:1846:6:
 warning: symbol 'deallocate_hiq_sdma_mqd' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c

index fe1ce34..d985e31 100644 (file)
@@ -1814,7 +1814,8 @@ out_free:
        return NULL;
 }
 
-void deallocate_hiq_sdma_mqd(struct kfd_dev *dev, struct kfd_mem_obj *mqd)
+static void deallocate_hiq_sdma_mqd(struct kfd_dev *dev,
+                                   struct kfd_mem_obj *mqd)
 {
        WARN(!mqd, "No hiq sdma mqd trunk to free");