diff options
author | Baolin Wang <baolin.wang@linux.alibaba.com> | 2020-06-12 11:39:54 +0800 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2020-07-24 14:29:00 +0200 |
commit | 9930264fd997dad4c2cd8914cec7acab7c0ed984 (patch) | |
tree | 18fbd0aeaabf6d955da1a1f51acd702805fad1da /drivers/iommu/iommu.c | |
parent | 1b0b2a84c979347f5385a8cb3901d3a46569d57c (diff) | |
download | linux-stable-9930264fd997dad4c2cd8914cec7acab7c0ed984.tar.gz linux-stable-9930264fd997dad4c2cd8914cec7acab7c0ed984.tar.bz2 linux-stable-9930264fd997dad4c2cd8914cec7acab7c0ed984.zip |
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 <baolin.wang@linux.alibaba.com>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/ab722e9970739929738066777b8ee7930e32abd5.1591930156.git.baolin.wang@linux.alibaba.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/iommu.c')
-rw-r--r-- | drivers/iommu/iommu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 40947f5bc6c5..15ce5ec3edb2 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -2330,9 +2330,9 @@ size_t iommu_unmap_fast(struct iommu_domain *domain, } EXPORT_SYMBOL_GPL(iommu_unmap_fast); -size_t __iommu_map_sg(struct iommu_domain *domain, unsigned long iova, - struct scatterlist *sg, unsigned int nents, int prot, - gfp_t gfp) +static size_t __iommu_map_sg(struct iommu_domain *domain, unsigned long iova, + struct scatterlist *sg, unsigned int nents, int prot, + gfp_t gfp) { size_t len = 0, mapped = 0; phys_addr_t start; |