From: Andi Kleen <[email protected]> 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: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Andi Kleen <[email protected]> --- 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

