Skip to content

Commit

Permalink
iommu/vt-d: Make two functions static
Browse files Browse the repository at this point in the history
These functions are only used in that file and can be
static.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
  • Loading branch information
Joerg Roedel committed Aug 13, 2015
1 parent dc02e46 commit b690420
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/iommu/intel-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand Down

0 comments on commit b690420

Please sign in to comment.