iommu/vt-d: Make two functions static

These functions are only used in that file and can be
static.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
Joerg Roedel 2015-08-13 11:32:18 +02:00
parent dc02e46e8d
commit b690420a40

View File

@ -1210,9 +1210,9 @@ next:
/* 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;