diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3504-drm-amdkfd-Make-deallocate_hiq_sdma_mqd-static.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3504-drm-amdkfd-Make-deallocate_hiq_sdma_mqd-static.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3504-drm-amdkfd-Make-deallocate_hiq_sdma_mqd-static.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3504-drm-amdkfd-Make-deallocate_hiq_sdma_mqd-static.patch new file mode 100644 index 00000000..afca020c --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3504-drm-amdkfd-Make-deallocate_hiq_sdma_mqd-static.patch @@ -0,0 +1,34 @@ +From 9ae8c4cb6255d95d42634a69e968268fc1761e8f Mon Sep 17 00:00:00 2001 +From: YueHaibing <yuehaibing@huawei.com> +Date: Sat, 25 May 2019 20:51:09 +0800 +Subject: [PATCH 3504/4256] drm/amdkfd: Make deallocate_hiq_sdma_mqd static + +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> +--- + drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +index d8418e6bec86..53862d66d065 100644 +--- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c ++++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +@@ -1907,7 +1907,8 @@ struct device_queue_manager *device_queue_manager_init(struct kfd_dev *dev) + 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"); + +-- +2.17.1 + |