mmc: host: MMC_SH_MMCIF should depend on HAS_DMA
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
@@ -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
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
@@ -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
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 todma_map_sg' drivers/built-in.o: In functionsh_mmcif_start_dma_rx':
sh_mmcif.c:(.text+0x5a33fc): undefined reference todma_map_sg' drivers/built-in.o: In functionsh_mmcif_end_cmd':
sh_mmcif.c:(.text+0x5a3668): undefined reference to `dma_unmap_sg'Signed-off-by Geert Uytterhoeven <[email protected]>
For both,
Quoted 17 lines
--- drivers/mmc/host/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mmc/host/Kconfig +1
-1@@ -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