提交 51b70b81 编写于 作者: J John Garry 提交者: Will Deacon

iommu: Stop exporting alloc_iova_mem()

It is not used outside iova.c
Signed-off-by: NJohn Garry <john.garry@huawei.com>
Link: https://lore.kernel.org/r/1607020492-189471-3-git-send-email-john.garry@huawei.comSigned-off-by: NWill Deacon <will@kernel.org>
上级 2f24dfb7
...@@ -243,11 +243,10 @@ static struct kmem_cache *iova_cache; ...@@ -243,11 +243,10 @@ static struct kmem_cache *iova_cache;
static unsigned int iova_cache_users; static unsigned int iova_cache_users;
static DEFINE_MUTEX(iova_cache_mutex); static DEFINE_MUTEX(iova_cache_mutex);
struct iova *alloc_iova_mem(void) static struct iova *alloc_iova_mem(void)
{ {
return kmem_cache_zalloc(iova_cache, GFP_ATOMIC | __GFP_NOWARN); return kmem_cache_zalloc(iova_cache, GFP_ATOMIC | __GFP_NOWARN);
} }
EXPORT_SYMBOL(alloc_iova_mem);
void free_iova_mem(struct iova *iova) void free_iova_mem(struct iova *iova)
{ {
......
...@@ -136,7 +136,6 @@ static inline unsigned long iova_pfn(struct iova_domain *iovad, dma_addr_t iova) ...@@ -136,7 +136,6 @@ static inline unsigned long iova_pfn(struct iova_domain *iovad, dma_addr_t iova)
int iova_cache_get(void); int iova_cache_get(void);
void iova_cache_put(void); void iova_cache_put(void);
struct iova *alloc_iova_mem(void);
void free_iova_mem(struct iova *iova); void free_iova_mem(struct iova *iova);
void free_iova(struct iova_domain *iovad, unsigned long pfn); void free_iova(struct iova_domain *iovad, unsigned long pfn);
void __free_iova(struct iova_domain *iovad, struct iova *iova); void __free_iova(struct iova_domain *iovad, struct iova *iova);
...@@ -171,11 +170,6 @@ static inline void iova_cache_put(void) ...@@ -171,11 +170,6 @@ static inline void iova_cache_put(void)
{ {
} }
static inline struct iova *alloc_iova_mem(void)
{
return NULL;
}
static inline void free_iova_mem(struct iova *iova) static inline void free_iova_mem(struct iova *iova)
{ {
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册