public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] m68k: don't select ARCH_HAS_DMA_PREP_COHERENT for nommu or coldfire
@ 2019-07-08 17:51 Christoph Hellwig
  2019-07-08 20:39 ` Geert Uytterhoeven
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2019-07-08 17:51 UTC (permalink / raw)
  To: geert; +Cc: linux, linux-m68k, linux-kernel

m68k only provides the dma_prep_coherent symbol when an mmu is enabled
and not on the coldfire platform.  Fix the Kconfig symbol selection
up to match this.

Fixes: 69878ef47562 ("m68k: Implement arch_dma_prep_coherent()")
Reported-by: Guenter Roeck <linux@roeck-us.net>
---
 arch/m68k/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig
index 8f765cfefca6..c518d695c376 100644
--- a/arch/m68k/Kconfig
+++ b/arch/m68k/Kconfig
@@ -5,7 +5,7 @@ config M68K
 	select ARCH_32BIT_OFF_T
 	select ARCH_HAS_BINFMT_FLAT
 	select ARCH_HAS_DMA_MMAP_PGPROT if MMU && !COLDFIRE
-	select ARCH_HAS_DMA_PREP_COHERENT
+	select ARCH_HAS_DMA_PREP_COHERENT if HAS_DMA && MMU && !COLDFIRE
 	select ARCH_HAS_SYNC_DMA_FOR_DEVICE if HAS_DMA
 	select ARCH_MIGHT_HAVE_PC_PARPORT if ISA
 	select ARCH_NO_COHERENT_DMA_MMAP if !MMU
-- 
2.20.1


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

end of thread, other threads:[~2019-07-09 13:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-08 17:51 [PATCH] m68k: don't select ARCH_HAS_DMA_PREP_COHERENT for nommu or coldfire Christoph Hellwig
2019-07-08 20:39 ` Geert Uytterhoeven
2019-07-08 21:23   ` Christoph Hellwig
2019-07-09  7:08     ` Geert Uytterhoeven
2019-07-09 13:36       ` Christoph Hellwig

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