]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: fix warnings without CONFIG_IOMMU_DMA
authorChristoph Hellwig <hch@lst.de>
Tue, 30 Oct 2018 07:41:29 +0000 (09:41 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 2 Nov 2018 18:27:22 +0000 (19:27 +0100)
commit36da1f2db82353c826c38d3921221a92d6f3f61d
tree4b012c18190e1779af4dce8f89750cdde19a52b9
parent393af919e6d872c52fdf751475869a88d5d505f2
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>
arch/arm64/mm/dma-mapping.c