diff mbox series

[066/120] FIXME: Export _dma_cache_{wback,wback_inv,inv}

Message ID dc3929c899b9fa3eaada3c67493369ae515346fb.1567326213.git.noring@nocrew.org (mailing list archive)
State RFC
Headers show
Series Linux for the PlayStation 2 | expand

Commit Message

Fredrik Noring Sept. 1, 2019, 4:10 p.m. UTC
Commit e58cfbfb32d1 ("MIPS: remove the _dma_cache_wback_inv export")
removes EXPORT_SYMBOL(_dma_cache_wback_inv) but what are the acceptable
alternatives? Streaming DMA mappings?

dma_cache_wback_inv() and dma_cache_inv() are used in subsequent changes,
but I suppose these must be changed to something appropriate. The current
DMA handling is very simple, although the hardware is quite capable (for
example, with scatter-gather lists, chaining and so on).

Signed-off-by: Fredrik Noring <noring@nocrew.org>
---
 arch/mips/mm/cache.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/arch/mips/mm/cache.c b/arch/mips/mm/cache.c
index 33b409391ddb..a01923b30086 100644
--- a/arch/mips/mm/cache.c
+++ b/arch/mips/mm/cache.c
@@ -62,6 +62,10 @@  void (*_dma_cache_wback_inv)(unsigned long start, unsigned long size);
 void (*_dma_cache_wback)(unsigned long start, unsigned long size);
 void (*_dma_cache_inv)(unsigned long start, unsigned long size);
 
+EXPORT_SYMBOL(_dma_cache_wback_inv);
+EXPORT_SYMBOL(_dma_cache_wback);
+EXPORT_SYMBOL(_dma_cache_inv);
+
 #endif /* CONFIG_DMA_NONCOHERENT */
 
 /*