提交 b690420a 编写于 作者: J Joerg Roedel

iommu/vt-d: Make two functions static

These functions are only used in that file and can be
static.
Signed-off-by: NJoerg Roedel <jroedel@suse.de>
上级 dc02e46e
......@@ -1210,9 +1210,9 @@ static struct page *dma_pte_clear_level(struct dmar_domain *domain, int level,
/* We can't just free the pages because the IOMMU may still be walking
the page tables, and may have cached the intermediate levels. The
pages can only be freed after the IOTLB flush has been done. */
struct page *domain_unmap(struct dmar_domain *domain,
unsigned long start_pfn,
unsigned long last_pfn)
static struct page *domain_unmap(struct dmar_domain *domain,
unsigned long start_pfn,
unsigned long last_pfn)
{
struct page *freelist = NULL;
......@@ -1236,7 +1236,7 @@ struct page *domain_unmap(struct dmar_domain *domain,
return freelist;
}
void dma_free_pagelist(struct page *freelist)
static void dma_free_pagelist(struct page *freelist)
{
struct page *pg;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册