[PATCH 1/6] arm64: export arch_sync_dma_for_*()

From: Rob Clark
Date: Wed Aug 14 2019 - 18:05:15 EST


From: Rob Clark <robdclark@xxxxxxxxxxxx>

Signed-off-by: Rob Clark <robdclark@xxxxxxxxxxxx>
---
arch/arm64/mm/dma-mapping.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c
index 1d3f0b5a9940..ea5ae11d07f7 100644
--- a/arch/arm64/mm/dma-mapping.c
+++ b/arch/arm64/mm/dma-mapping.c
@@ -24,12 +24,14 @@ void arch_sync_dma_for_device(struct device *dev, phys_addr_t paddr,
{
__dma_map_area(phys_to_virt(paddr), size, dir);
}
+EXPORT_SYMBOL_GPL(arch_sync_dma_for_device);

void arch_sync_dma_for_cpu(struct device *dev, phys_addr_t paddr,
size_t size, enum dma_data_direction dir)
{
__dma_unmap_area(phys_to_virt(paddr), size, dir);
}
+EXPORT_SYMBOL_GPL(arch_sync_dma_for_cpu);

void arch_dma_prep_coherent(struct page *page, size_t size)
{
--
2.21.0