staging: wfx: fix an undefined reference error when CONFIG_MMC=m
PATCH v3 1/1 staging: wfx: fix an undefined reference error when CONFIG_MMC=m
I hit the following error when compile the kernel.
drivers/staging/wfx/main.o: In function `wfx_core_init':/home/z00352263/linux-next/linux-next/drivers/staging/wfx/main.c:488: undefined reference to sdio_register_driver' drivers/staging/wfx/main.o: In function wfx_core_exit':/home/z00352263/linux-next/linux-next/drivers/staging/wfx/main.c:496: undefined reference to sdio_unregister_driver' drivers/staging/wfx/main.o:(.debug_addr+0x1a8): undefined reference to sdio_register_driver' drivers/staging/wfx/main.o:(.debug_addr+0x6f0): undefined reference to `sdio_unregister_driver'
---v2->v3:
We'd better not use #ifdef in .c file to use IS_ENABLED instead.
v1->v2:
We should prefer to current dependencies rather than force to enable.
drivers/staging/wfx/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/wfx/Makefile +1 -1
@@ -19,6 +19,6 @@ wfx-y := \ sta.o \ debug.o wfx-$(CONFIG_SPI) += bus_spi.o -wfx-$(subst m,y,$(CONFIG_MMC)) += bus_sdio.o +wfx-$(CONFIG_MMC) += bus_sdio.o obj-$(CONFIG_WFX) += wfx.o
Signature · 1 line
1.7.12.4
Greg KH
maintainerQuoted 25 lines · zhong jiang
I hit the following error when compile the kernel.
drivers/staging/wfx/main.o: In function `wfx_core_init':/home/z00352263/linux-next/linux-next/drivers/staging/wfx/main.c:488: undefined reference tosdio_register_driver' drivers/staging/wfx/main.o: In functionwfx_core_exit':/home/z00352263/linux-next/linux-next/drivers/staging/wfx/main.c:496: undefined reference tosdio_unregister_driver' drivers/staging/wfx/main.o:(.debug_addr+0x1a8): undefined reference tosdio_register_driver' drivers/staging/wfx/main.o:(.debug_addr+0x6f0): undefined reference to `sdio_unregister_driver'Signed-off-by zhong jiang <[email protected]>---
v2->v3:
We'd better not use #ifdef in .c file to useIS_ENABLEDinstead.
v1->v2:
We should prefer to current dependencies rather than force to enable.drivers/staging/wfx/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/wfx/Makefile +0
-0
drivers/staging/wfx/Makefile wfx-y := \ · line 24
Quoted 7 lines
drivers/staging/wfx/Makefile +1
-1@@ -19,6 +19,6 @@ wfx-y := \ sta.o \ debug.o wfx-$(CONFIG_SPI) += bus_spi.o -wfx-$(subst m,y,$(CONFIG_MMC)) += bus_sdio.o +wfx-$(CONFIG_MMC) += bus_sdio.o obj-$(CONFIG_WFX) += wfx.o
How does this change any of the existing logic? What does this really change to solve the issue? I thought you were going to fix this up as I suggested in my last email?
thanks,
greg k-h
Quoted 32 lines · Greg KH
Quoted 31 lines · zhong jiang
I hit the following error when compile the kernel.
drivers/staging/wfx/main.o: In function `wfx_core_init':/home/z00352263/linux-next/linux-next/drivers/staging/wfx/main.c:488: undefined reference tosdio_register_driver' drivers/staging/wfx/main.o: In functionwfx_core_exit':/home/z00352263/linux-next/linux-next/drivers/staging/wfx/main.c:496: undefined reference tosdio_unregister_driver' drivers/staging/wfx/main.o:(.debug_addr+0x1a8): undefined reference tosdio_register_driver' drivers/staging/wfx/main.o:(.debug_addr+0x6f0): undefined reference to `sdio_unregister_driver'Signed-off-by zhong jiang <[email protected]>---
v2->v3:
We'd better not use #ifdef in .c file to useIS_ENABLEDinstead.
v1->v2:
We should prefer to current dependencies rather than force to enable.drivers/staging/wfx/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/wfx/Makefile +1
-1@@ -19,6 +19,6 @@ wfx-y := \ sta.o \ debug.o wfx-$(CONFIG_SPI) += bus_spi.o -wfx-$(subst m,y,$(CONFIG_MMC)) += bus_sdio.o +wfx-$(CONFIG_MMC) += bus_sdio.o
Quoted 4 lines
drivers/staging/wfx/Makefile wfx-y := \ · line 24
Quoted 1 line
drivers/staging/wfx/Makefile +0
-0obj-$(CONFIG_WFX) += wfx.oHow does this change any of the existing logic? What does this really change to solve the issue? I thought you were going to fix this up as I suggested in my last email?
Yep, It's my stupid fault. I disable the CONFIG_SPI to test the issue. :-(
Thanks,
zhong jiang
Quoted 6 lines
thanks,
greg k-h
.