Skip to contentSkip to conversation

mmc: host: MMC_SH_MMCIF should depend on HAS_DMA

PATCH Superseded Geert Uytterhoeven 2 participants 3 messages Feb 21, 2014 MMC, SD and SDIO

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 mmc: host: MMC_SH_MMCIF should depend on HAS_DMA

If NO_DMA=y:

drivers/built-in.o: In function `sh_mmcif_start_dma_tx':
sh_mmcif.c:(.text+0x5a3286): undefined reference to dma_map_sg' drivers/built-in.o: In function sh_mmcif_start_dma_rx':
sh_mmcif.c:(.text+0x5a33fc): undefined reference to dma_map_sg' drivers/built-in.o: In function sh_mmcif_end_cmd':
sh_mmcif.c:(.text+0x5a3668): undefined reference to `dma_unmap_sg'

---
 drivers/mmc/host/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/Kconfig +1 -1
index 1384f67abe21..bfe2133d0b9c 100644
@@ -611,7 +611,7 @@ config MMC_DW_PCI
 
 config MMC_SH_MMCIF
 	tristate "SuperH Internal MMCIF support"
-	depends on MMC_BLOCK
+	depends on MMC_BLOCK && HAS_DMA
 	depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
 	help
 	  This selects the MMC Host Interface controller (MMCIF).
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/2 mmc: host: MMC_OMAP_HS should depend on HAS_DMA

If NO_DMA=y:

drivers/built-in.o: In function `omap_hsmmc_pre_dma_transfer':
omap_hsmmc.c:(.text+0x5a0928): undefined reference to dma_map_sg' drivers/built-in.o: In function omap_hsmmc_dma_cleanup':
omap_hsmmc.c:(.text+0x5a0e8e): undefined reference to dma_unmap_sg' drivers/built-in.o: In function omap_hsmmc_dma_callback':
omap_hsmmc.c:(.text+0x5a1f58): undefined reference to dma_unmap_sg' drivers/built-in.o: In function omap_hsmmc_post_req':
omap_hsmmc.c:(.text+0x5a2082): undefined reference to `dma_unmap_sg'

---
 drivers/mmc/host/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/Kconfig +1 -0
index bfe2133d0b9c..2496b9d649f1 100644
@@ -296,6 +296,7 @@ config MMC_OMAP
 
 config MMC_OMAP_HS
 	tristate "TI OMAP High Speed Multimedia Card Interface support"
+	depends on HAS_DMA
 	depends on ARCH_OMAP2PLUS || COMPILE_TEST
 	help
 	  This selects the TI OMAP High Speed Multimedia card Interface.
Signature · 1 line
1.7.9.5
Acked-by on v1 1/2
#2 lore raw
In reply to Geert Uytterhoeven

Hi Geert,

Thank you for the patches.

Quoted 10 lines · On Friday 21 February 2014 20:52:50 Geert Uytterhoeven wrote:

If NO_DMA=y:

drivers/built-in.o: In function `sh_mmcif_start_dma_tx':
sh_mmcif.c:(.text+0x5a3286): undefined reference to dma_map_sg' drivers/built-in.o: In function sh_mmcif_start_dma_rx':
sh_mmcif.c:(.text+0x5a33fc): undefined reference to dma_map_sg' drivers/built-in.o: In function sh_mmcif_end_cmd':
sh_mmcif.c:(.text+0x5a3668): undefined reference to `dma_unmap_sg'

For both,

Quoted 17 lines
---
 drivers/mmc/host/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/Kconfig +1 -1
index 1384f67abe21..bfe2133d0b9c 100644
@@ -611,7 +611,7 @@ config MMC_DW_PCI
 
 config MMC_SH_MMCIF
 	tristate "SuperH Internal MMCIF support"
-	depends on MMC_BLOCK
+	depends on MMC_BLOCK && HAS_DMA
 	depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
 	help
 	  This selects the MMC Host Interface controller (MMCIF).
Signature · 3 lines
Regards,

Laurent Pinchart