Messages in this thread Patch in this message | | | From | Andi Kleen <> | Subject | [PATCH 07/17] amdkfd: Fix extern declaration | Date | Thu, 21 Mar 2019 14:59:59 -0700 |
| |
From: Andi Kleen <ak@linux.intel.com>
When you use bare externs outside include files, need to at least specify matching types. This fixes a type confusion between u16 and unsigned.
Cc: Yong.Zhao@amd.com Cc: alexander.deucher@amd.com Cc: airlied@redhat.com Signed-off-by: Andi Kleen <ak@linux.intel.com> --- drivers/gpu/drm/amd/amdkfd/kfd_iommu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_iommu.c b/drivers/gpu/drm/amd/amdkfd/kfd_iommu.c index 01494752c36a..a8cba8d3714d 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_iommu.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_iommu.c @@ -341,8 +341,8 @@ int kfd_iommu_resume(struct kfd_dev *kfd) } extern bool amd_iommu_pc_supported(void); -extern u8 amd_iommu_pc_get_max_banks(u16 devid); -extern u8 amd_iommu_pc_get_max_counters(u16 devid); +extern u8 amd_iommu_pc_get_max_banks(unsigned devid); +extern u8 amd_iommu_pc_get_max_counters(unsigned devid); /** kfd_iommu_add_perf_counters - Add IOMMU performance counters to topology */ -- 2.20.1
| |