Skip to contentSkip to conversation

mmc: MMC_GOLDFISH should depend on HAS_DMA

PATCH Applied Geert Uytterhoeven 2 participants 2 messages Nov 9, 2015 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: MMC_GOLDFISH should depend on HAS_DMA

If NO_DMA=y:

ERROR: dma_unmap_sg [drivers/mmc/host/android-goldfish.ko] undefined!
ERROR: dma_alloc_coherent [drivers/mmc/host/android-goldfish.ko] undefined!
ERROR: dma_map_sg [drivers/mmc/host/android-goldfish.ko] undefined!
ERROR: dma_free_coherent [drivers/mmc/host/android-goldfish.ko] undefined!

Add a dependency on HAS_DMA to fix this.

---
 drivers/mmc/host/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/Kconfig +1 -0
index af71de5fda3b48c9..1dee533634c986d7 100644
@@ -473,6 +473,7 @@ config MMC_DAVINCI
 
 config MMC_GOLDFISH
 	tristate "goldfish qemu Multimedia Card Interface support"
+	depends on HAS_DMA
 	depends on GOLDFISH || COMPILE_TEST
 	help
 	  This selects the Goldfish Multimedia card Interface emulation
Signature · 1 line
1.9.1
Applied
#1 lore raw
Quoted 10 lines · Geert Uytterhoeven

If NO_DMA=y:

ERROR: dma_unmap_sg [drivers/mmc/host/android-goldfish.ko] undefined!
ERROR: dma_alloc_coherent [drivers/mmc/host/android-goldfish.ko] undefined!
ERROR: dma_map_sg [drivers/mmc/host/android-goldfish.ko] undefined!
ERROR: dma_free_coherent [drivers/mmc/host/android-goldfish.ko] undefined!

Add a dependency on HAS_DMA to fix this.

Thanks, applied for fixes!

Kind regards
Uffe

Quoted 19 lines
---
 drivers/mmc/host/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/Kconfig +1 -1
index af71de5fda3b48c9..1dee533634c986d7 100644
@@ -473,6 +473,7 @@ config MMC_DAVINCI
 
 config MMC_GOLDFISH
        tristate "goldfish qemu Multimedia Card Interface support"
+       depends on HAS_DMA
        depends on GOLDFISH || COMPILE_TEST
        help
          This selects the Goldfish Multimedia card Interface emulation
--

1.9.1