aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-09-28 14:46:17 +0100
committerAlex Deucher <alexander.deucher@amd.com>2017-10-06 16:47:58 -0400
commitc3fa35a4e5d1a06a5f70e5ac34a05da139aa71f4 (patch)
treef920b00c8a59349f7976fe838900fcd5573c8268 /drivers/gpu/drm/radeon
parentdrm/amdgpu: add FENCE_TO_HANDLE ioctl that returns syncobj or sync_file (diff)
downloadlinux-dev-c3fa35a4e5d1a06a5f70e5ac34a05da139aa71f4.tar.xz
linux-dev-c3fa35a4e5d1a06a5f70e5ac34a05da139aa71f4.zip
drm/radeon: make functions alloc_pasid and free_pasid static
The functions alloc_pasid and free_pasid are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: warning: symbol 'alloc_pasid' was not declared. Should it be static? warning: symbol 'free_pasid' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r--drivers/gpu/drm/radeon/radeon_kfd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_kfd.c b/drivers/gpu/drm/radeon/radeon_kfd.c
index a2ac8ac0930d..385b4d76956d 100644
--- a/drivers/gpu/drm/radeon/radeon_kfd.c
+++ b/drivers/gpu/drm/radeon/radeon_kfd.c
@@ -352,7 +352,7 @@ static uint32_t get_max_engine_clock_in_mhz(struct kgd_dev *kgd)
*/
static DEFINE_IDA(pasid_ida);
-int alloc_pasid(unsigned int bits)
+static int alloc_pasid(unsigned int bits)
{
int pasid = -EINVAL;
@@ -367,7 +367,7 @@ int alloc_pasid(unsigned int bits)
return pasid;
}
-void free_pasid(unsigned int pasid)
+static void free_pasid(unsigned int pasid)
{
ida_simple_remove(&pasid_ida, pasid);
}