Skip to content

Commit 3308a38

Browse files
committed
Merge tag 'dma-mapping-4.20-2' of git://git.infradead.org/users/hch/dma-mapping
Pull dma-mapping fix from Christoph Hellwig: "Avoid compile warnings on non-default arm64 configs" * tag 'dma-mapping-4.20-2' of git://git.infradead.org/users/hch/dma-mapping: arm64: fix warnings without CONFIG_IOMMU_DMA
2 parents 9a12efc + f627175 commit 3308a38

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arm64/mm/dma-mapping.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ void arch_sync_dma_for_cpu(struct device *dev, phys_addr_t paddr,
160160
__dma_unmap_area(phys_to_virt(paddr), size, dir);
161161
}
162162

163+
#ifdef CONFIG_IOMMU_DMA
163164
static int __swiotlb_get_sgtable_page(struct sg_table *sgt,
164165
struct page *page, size_t size)
165166
{
@@ -188,6 +189,7 @@ static int __swiotlb_mmap_pfn(struct vm_area_struct *vma,
188189

189190
return ret;
190191
}
192+
#endif /* CONFIG_IOMMU_DMA */
191193

192194
static int __init atomic_pool_init(void)
193195
{

0 commit comments

Comments
 (0)