Skip to content

Commit 9930264

Browse files
Baolin Wangjoergroedel
authored andcommitted
iommu: Mark __iommu_map_sg() as static
Now __iommu_map_sg() is used only in iommu.c file, so mark it static. Signed-off-by: Baolin Wang <[email protected]> Acked-by: Will Deacon <[email protected]> Link: https://lore.kernel.org/r/ab722e9970739929738066777b8ee7930e32abd5.1591930156.git.baolin.wang@linux.alibaba.com Signed-off-by: Joerg Roedel <[email protected]>
1 parent 1b0b2a8 commit 9930264

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/iommu/iommu.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2330,9 +2330,9 @@ size_t iommu_unmap_fast(struct iommu_domain *domain,
23302330
}
23312331
EXPORT_SYMBOL_GPL(iommu_unmap_fast);
23322332

2333-
size_t __iommu_map_sg(struct iommu_domain *domain, unsigned long iova,
2334-
struct scatterlist *sg, unsigned int nents, int prot,
2335-
gfp_t gfp)
2333+
static size_t __iommu_map_sg(struct iommu_domain *domain, unsigned long iova,
2334+
struct scatterlist *sg, unsigned int nents, int prot,
2335+
gfp_t gfp)
23362336
{
23372337
size_t len = 0, mapped = 0;
23382338
phys_addr_t start;

0 commit comments

Comments
 (0)