diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4514-drm-amdkfd-remove-set-but-not-used-variable-top_dev.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4514-drm-amdkfd-remove-set-but-not-used-variable-top_dev.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4514-drm-amdkfd-remove-set-but-not-used-variable-top_dev.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4514-drm-amdkfd-remove-set-but-not-used-variable-top_dev.patch new file mode 100644 index 00000000..ad51cab5 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4514-drm-amdkfd-remove-set-but-not-used-variable-top_dev.patch @@ -0,0 +1,37 @@ +From d5fd1655587eb432b0d47243c678488f7253e6c4 Mon Sep 17 00:00:00 2001 +From: zhengbin <zhengbin13@huawei.com> +Date: Thu, 14 Nov 2019 11:20:25 +0800 +Subject: [PATCH 4514/4736] drm/amdkfd: remove set but not used variable + 'top_dev' + +Fixes gcc '-Wunused-but-set-variable' warning: + +drivers/gpu/drm/amd/amdkfd/kfd_iommu.c: In function kfd_iommu_device_init: +drivers/gpu/drm/amd/amdkfd/kfd_iommu.c:65:30: warning: variable top_dev set but not used [-Wunused-but-set-variable] + +Reported-by: Hulk Robot <hulkci@huawei.com> +Fixes: 1ae99eab34f9 ("drm/amdkfd: Initialize HSA_CAP_ATS_PRESENT capability in topology codes") +Signed-off-by: zhengbin <zhengbin13@huawei.com> +Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> +Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> +--- + drivers/gpu/drm/amd/amdkfd/kfd_iommu.c | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_iommu.c b/drivers/gpu/drm/amd/amdkfd/kfd_iommu.c +index 193e2835bd4d..8d871514671e 100644 +--- a/drivers/gpu/drm/amd/amdkfd/kfd_iommu.c ++++ b/drivers/gpu/drm/amd/amdkfd/kfd_iommu.c +@@ -62,9 +62,6 @@ int kfd_iommu_device_init(struct kfd_dev *kfd) + struct amd_iommu_device_info iommu_info; + unsigned int pasid_limit; + int err; +- struct kfd_topology_device *top_dev; +- +- top_dev = kfd_topology_device_by_id(kfd->id); + + if (!kfd->device_info->needs_iommu_device) + return 0; +-- +2.17.1 + |