[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190321220009.29334-8-andi@firstfloor.org>
Date: Thu, 21 Mar 2019 14:59:59 -0700
From: Andi Kleen <andi@...stfloor.org>
To: x86@...nel.org
Cc: akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
Andi Kleen <ak@...ux.intel.com>, Yong.Zhao@....com,
alexander.deucher@....com, airlied@...hat.com
Subject: [PATCH 07/17] amdkfd: Fix extern declaration
From: Andi Kleen <ak@...ux.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@....com
Cc: alexander.deucher@....com
Cc: airlied@...hat.com
Signed-off-by: Andi Kleen <ak@...ux.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
Powered by blists - more mailing lists