linux/drivers/staging/wfx
Jérôme Pouiller 8008d9e7dd staging: wfx: fix CONFIG_MMC=m with CONFIG_WFX=y
If CONFIG_MMC=m and CONFIG_WFX=y, compilation complains with undefined
references:

    drivers/staging/wfx/main.o: In function `wfx_core_init': /linux/drivers/staging/wfx/main.c:488: undefined reference to `sdio_register_driver'
    drivers/staging/wfx/main.o: In function `wfx_core_exit': /linux/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'

Indeed, symbols sdio_* are not present in kernel image.

This patch disallows CONFIG_WFX=y if CONFIG_MMC=m.

This solution impacts users who want to use SPI bus with configuration:
CONFIG_WFX=y + CONFIG_SPI=y + CONFIG_MMC=m. However, I think this is a
twisted case. So, I think it won't be missed.

Reported-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20191017093954.657-3-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-26 20:42:32 +02:00
..
Documentation/devicetree/bindings/net/wireless staging: wfx: fix spelling mistake "hexdecimal" -> "hexadecimal" 2019-10-08 14:46:21 +02:00
bh.c staging: wfx: drop calls to BUG_ON() 2019-10-08 14:44:56 +02:00
bh.h staging: wfx: add IRQ handling 2019-10-04 10:43:40 +02:00
bus_sdio.c staging: wfx: drop calls to BUG_ON() 2019-10-08 14:44:56 +02:00
bus_spi.c staging: wfx: setup initial chip configuration 2019-10-04 10:47:35 +02:00
bus.h
data_rx.c staging: wfx: implement the rest of mac80211 API 2019-10-04 10:48:54 +02:00
data_rx.h staging: wfx: allow to receive 802.11 frames 2019-10-04 10:47:36 +02:00
data_tx.c staging: wfx: fix error handling in wfx_tx_get_raw_link_id() 2019-10-14 15:37:18 +02:00
data_tx.h staging: wfx: avoid namespace contamination 2019-10-08 14:44:56 +02:00
debug.c staging: wfx: fix swapped arguments in memset call 2019-10-10 10:46:26 +02:00
debug.h staging: wfx: allow to send commands to chip 2019-10-04 10:46:10 +02:00
fwio.c staging: wfx: Make function 'sram_write_dma_safe', 'load_firmware_secure' static 2019-10-10 10:47:12 +02:00
fwio.h staging: wfx: load firmware 2019-10-04 10:43:39 +02:00
hif_api_cmd.h staging: wfx: import HIF API headers 2019-10-04 10:43:40 +02:00
hif_api_general.h staging: wfx: import HIF API headers 2019-10-04 10:43:40 +02:00
hif_api_mib.h staging: wfx: import HIF API headers 2019-10-04 10:43:40 +02:00
hif_rx.c staging: wfx: fix spelling mistake "non existant" -> "non-existent" 2019-10-10 12:47:31 +02:00
hif_rx.h staging: wfx: add support for start-up indication 2019-10-04 10:46:09 +02:00
hif_tx_mib.h staging: wfx: drop calls to BUG_ON() 2019-10-08 14:44:56 +02:00
hif_tx.c staging: wfx: implement the rest of mac80211 API 2019-10-04 10:48:54 +02:00
hif_tx.h staging: wfx: introduce "secure link" 2019-10-04 10:47:35 +02:00
hwio.c staging: wfx: add tracepoints for I/O access 2019-10-04 10:43:39 +02:00
hwio.h staging: wfx: add I/O API 2019-10-04 10:43:39 +02:00
Kconfig staging: wfx: fix CONFIG_MMC=m with CONFIG_WFX=y 2019-10-26 20:42:32 +02:00
key.c staging: wfx: drop calls to BUG_ON() 2019-10-08 14:44:56 +02:00
key.h staging: wfx: implement 802.11 key handling 2019-10-04 10:48:54 +02:00
main.c staging: wfx: relocate wfx_fill_sl_key() in secure_link.h 2019-10-26 20:42:31 +02:00
main.h staging: wfx: relocate wfx_fill_sl_key() in secure_link.h 2019-10-26 20:42:31 +02:00
Makefile staging: wfx: implement 802.11 key handling 2019-10-04 10:48:54 +02:00
queue.c staging: wfx: Make function 'wfx_tx_queue_get' static 2019-10-10 10:47:12 +02:00
queue.h staging: wfx: allow to send 802.11 frames 2019-10-04 10:47:35 +02:00
scan.c staging: wfx: drop calls to BUG_ON() 2019-10-08 14:44:56 +02:00
scan.h staging: wfx: allow to scan networks 2019-10-04 10:48:53 +02:00
secure_link.h staging: wfx: relocate wfx_fill_sl_key() in secure_link.h 2019-10-26 20:42:31 +02:00
sta.c staging: wfx: Make some functions static in sta.c 2019-10-10 10:47:13 +02:00
sta.h staging: wfx: implement the rest of mac80211 API 2019-10-04 10:48:54 +02:00
TODO staging: wfx: drop module version 2019-10-26 20:41:17 +02:00
traces.h staging: wfx: allow to send 802.11 frames 2019-10-04 10:47:35 +02:00
wfx.h staging: wfx: fix potential vulnerability to spectre 2019-10-14 15:37:19 +02:00