diff options
author | Christoph Hellwig <hch@lst.de> | 2018-10-30 09:41:29 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-11-02 19:27:22 +0100 |
commit | f62717551b2b7d72fc2a3975539117d350bad84d (patch) | |
tree | 4b012c18190e1779af4dce8f89750cdde19a52b9 /arch/arm64/mm | |
parent | 8adcc59974b8a65b7eac7d503364837c297139bc (diff) | |
download | linux-f62717551b2b7d72fc2a3975539117d350bad84d.tar.gz linux-f62717551b2b7d72fc2a3975539117d350bad84d.tar.bz2 linux-f62717551b2b7d72fc2a3975539117d350bad84d.zip |
arm64: fix warnings without CONFIG_IOMMU_DMA
__swiotlb_get_sgtable_page and __swiotlb_mmap_pfn are not only misnamed
but also only used if CONFIG_IOMMU_DMA is set. Just add a simple ifdef
for now, given that we plan to remove them entirely for the next merge
window.
Reported-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Will Deacon <will.deacon@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/mm')
-rw-r--r-- | arch/arm64/mm/dma-mapping.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c index 3a703e5d4e32..a3ac26284845 100644 --- a/arch/arm64/mm/dma-mapping.c +++ b/arch/arm64/mm/dma-mapping.c @@ -160,6 +160,7 @@ void arch_sync_dma_for_cpu(struct device *dev, phys_addr_t paddr, __dma_unmap_area(phys_to_virt(paddr), size, dir); } +#ifdef CONFIG_IOMMU_DMA static int __swiotlb_get_sgtable_page(struct sg_table *sgt, struct page *page, size_t size) { @@ -188,6 +189,7 @@ static int __swiotlb_mmap_pfn(struct vm_area_struct *vma, return ret; } +#endif /* CONFIG_IOMMU_DMA */ static int __init atomic_pool_init(void) { |