summaryrefslogtreecommitdiff
path: root/drivers/iommu
diff options
context:
space:
mode:
authorJohn Garry <john.garry@huawei.com>2020-12-04 02:34:52 +0800
committerWill Deacon <will@kernel.org>2020-12-08 14:14:48 +0000
commit176cfc187c24287a363e7612cd2385ba40c2042b (patch)
treed5c7e33b049d37d6d957244c08d74ab66fb488b3 /drivers/iommu
parent51b70b817b187e48155fc492adb9ce80bdb21b70 (diff)
iommu: Stop exporting free_iova_mem()
It has no user outside iova.c Signed-off-by: John Garry <john.garry@huawei.com> Link: https://lore.kernel.org/r/1607020492-189471-4-git-send-email-john.garry@huawei.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/iova.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iommu/iova.c b/drivers/iommu/iova.c
index bb5cb67ee311..4bb3293ae4d7 100644
--- a/drivers/iommu/iova.c
+++ b/drivers/iommu/iova.c
@@ -248,12 +248,11 @@ static struct iova *alloc_iova_mem(void)
return kmem_cache_zalloc(iova_cache, GFP_ATOMIC | __GFP_NOWARN);
}
-void free_iova_mem(struct iova *iova)
+static void free_iova_mem(struct iova *iova)
{
if (iova->pfn_lo != IOVA_ANCHOR)
kmem_cache_free(iova_cache, iova);
}
-EXPORT_SYMBOL(free_iova_mem);
int iova_cache_get(void)
{