mmc: winbond: don't build on M68K
PATCH 1/1 mmc: winbond: don't build on M68K
The Winbond MMC driver fails to build on ARCH=m68k so prevent that build config. Silences these build errors:
../drivers/mmc/host/wbsd.c: In function 'wbsd_request_end':../drivers/mmc/host/wbsd.c:212:28: error: implicit declaration of function 'claim_dma_lock' [-Werror=implicit-function-declaration]
212 | dmaflags = claim_dma_lock();../drivers/mmc/host/wbsd.c:215:17: error: implicit declaration of function 'release_dma_lock'; did you mean 'release_task'? [-Werror=implicit-function-declaration]
215 | release_dma_lock(dmaflags);
--- drivers/mmc/host/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/Kconfig +1 -1
@@ -508,7 +508,7 @@ config MMC_OMAP_HS config MMC_WBSD tristate "Winbond W83L51xD SD/MMC Card Interface support" - depends on ISA_DMA_API + depends on ISA_DMA_API && !M68K help This selects the Winbond(R) W83L51xD Secure digital and Multimedia card Interface.
Quoted 10 lines · Randy Dunlap
The Winbond MMC driver fails to build on ARCH=m68k so prevent that build config. Silences these build errors:
../drivers/mmc/host/wbsd.c: In function 'wbsd_request_end':../drivers/mmc/host/wbsd.c:212:28: error: implicit declaration of function 'claim_dma_lock' [-Werror=implicit-function-declaration]
212 | dmaflags =claim_dma_lock();../drivers/mmc/host/wbsd.c:215:17: error: implicit declaration of function 'release_dma_lock'; did you mean 'release_task'? [-Werror=implicit-function-declaration]
215 |release_dma_lock(dmaflags);
It looks like m68k and sparc declare this function in asm/floppy.h, while everyone
else has it in asm/dma.h.
Not sure if it's worth fixing in a better way, but I suspect sparc would have the
same issue here.
Arnd
Quoted 12 lines · Arnd Bergmann
Quoted 10 lines · Randy Dunlap
The Winbond MMC driver fails to build on ARCH=m68k so prevent that build config. Silences these build errors:
../drivers/mmc/host/wbsd.c: In function 'wbsd_request_end':../drivers/mmc/host/wbsd.c:212:28: error: implicit declaration of function 'claim_dma_lock' [-Werror=implicit-function-declaration]
212 | dmaflags =claim_dma_lock();../drivers/mmc/host/wbsd.c:215:17: error: implicit declaration of function 'release_dma_lock'; did you mean 'release_task'? [-Werror=implicit-function-declaration]
215 |release_dma_lock(dmaflags);
Quoted 7 lines
It looks like m68k and sparc declare this function in
asm/floppy.h, while everyone
else has it inasm/dma.h.Not sure if it's worth fixing in a better way, but I suspect sparc would have the
same issue here.
Ah, I should have seen that.
I'll look into a different patch.
thanks.
Signature · 1 line
~Randy
Quoted 17 lines · Randy Dunlap
Quoted 16 lines · Arnd Bergmann
Quoted 10 lines · Randy Dunlap
The Winbond MMC driver fails to build on ARCH=m68k so prevent that build config. Silences these build errors:
../drivers/mmc/host/wbsd.c: In function 'wbsd_request_end':../drivers/mmc/host/wbsd.c:212:28: error: implicit declaration of function 'claim_dma_lock' [-Werror=implicit-function-declaration]
212 | dmaflags =claim_dma_lock();../drivers/mmc/host/wbsd.c:215:17: error: implicit declaration of function 'release_dma_lock'; did you mean 'release_task'? [-Werror=implicit-function-declaration] 215 |release_dma_lock(dmaflags);It looks like m68k and sparc declare this function in
asm/floppy.h, while everyone
else has it inasm/dma.h.
Quoted 8 lines
Quoted 3 lines
Not sure if it's worth fixing in a better way, but I suspect sparc would have the
same issue here.Ah, I should have seen that.
I'll look into a different patch.thanks.
OK, I have spent several hours on moving dma functions from floppy.h to dma.h (for m68k), and it fixes a few things, but there are still quite a few problems, and I don't see any end in sight (it's either a maze of twisty tunnels or a twisty maze of tunnels), and it's just not worth spending more time on it IMO.
Signature · 1 line
~Randy
Quoted 10 lines · Randy Dunlap
The Winbond MMC driver fails to build on ARCH=m68k so prevent that build config. Silences these build errors:
../drivers/mmc/host/wbsd.c: In function 'wbsd_request_end':../drivers/mmc/host/wbsd.c:212:28: error: implicit declaration of function 'claim_dma_lock' [-Werror=implicit-function-declaration]
212 | dmaflags =claim_dma_lock();../drivers/mmc/host/wbsd.c:215:17: error: implicit declaration of function 'release_dma_lock'; did you mean 'release_task'? [-Werror=implicit-function-declaration]
215 |release_dma_lock(dmaflags);
Quoted 7 lines
Signed-off-by Randy Dunlap <[email protected]>Cc Pierre Ossman <[email protected]>Cc Ulf Hansson <[email protected]>Cc Geert Uytterhoeven <[email protected]>Cc Arnd Bergmann <[email protected]>
Applied for fixes, thanks!
Kind regards
Uffe
Quoted 15 lines
--- drivers/mmc/host/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mmc/host/Kconfig +1
-1@@ -508,7 +508,7 @@ config MMC_OMAP_HS config MMC_WBSD tristate "Winbond W83L51xD SD/MMC Card Interface support" - depends on ISA_DMA_API + depends on ISA_DMA_API && !M68K help This selects the Winbond(R) W83L51xD Secure digital and Multimedia card Interface.