mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: add implementation for dma_alloc_writecombine for !CONFIG_MMU
@ 2015-09-09  8:38 Lucas Stach
  2015-09-09  8:38 ` [PATCH 2/2] passwd: avoid NULL ptr usage Lucas Stach
  2015-09-14  6:00 ` [PATCH 1/2] ARM: add implementation for dma_alloc_writecombine for !CONFIG_MMU Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Lucas Stach @ 2015-09-09  8:38 UTC (permalink / raw)
  To: barebox

This fixes build failures in builds without MMU support by providing
a fallback implementation.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 arch/arm/include/asm/dma.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/include/asm/dma.h b/arch/arm/include/asm/dma.h
index d9bce3d70e61..1ba2edf01275 100644
--- a/arch/arm/include/asm/dma.h
+++ b/arch/arm/include/asm/dma.h
@@ -23,6 +23,11 @@ static inline void *dma_alloc_coherent(size_t size, dma_addr_t *dma_handle)
 	return ret;
 }
 
+static inline void *dma_alloc_writecombine(size_t size, dma_addr_t *dma_handle)
+{
+	return dma_alloc_coherent(size, dma_handle);
+}
+
 static inline void dma_free_coherent(void *mem, dma_addr_t dma_handle,
 				     size_t size)
 {
-- 
2.5.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-14  6:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-09  8:38 [PATCH 1/2] ARM: add implementation for dma_alloc_writecombine for !CONFIG_MMU Lucas Stach
2015-09-09  8:38 ` [PATCH 2/2] passwd: avoid NULL ptr usage Lucas Stach
2015-09-14  6:00 ` [PATCH 1/2] ARM: add implementation for dma_alloc_writecombine for !CONFIG_MMU Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox