Bluetooth: btqcomsmd: fix compile-test dependency
PATCH 1/1 Bluetooth: btqcomsmd: fix compile-test dependency
compile-testing fails when QCOM_SMD is a loadable module:
drivers/bluetooth/built-in.o: In function `btqcomsmd_send':
btqca.c:(.text+0xa8): undefined reference to qcom_smd_send' drivers/bluetooth/built-in.o: In function btqcomsmd_probe':
btqca.c:(.text+0x3ec): undefined reference to qcom_wcnss_open_channel' btqca.c:(.text+0x46c): undefined reference to qcom_smd_set_drvdata'
This clarifies the dependency to allow compile-testing only when SMD is completely disabled, otherwise the dependency on QCOM_SMD will make sure we can link against it.
--- drivers/bluetooth/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bluetooth/Kconfig +1 -1
@@ -344,7 +344,7 @@ config BT_WILINK config BT_QCOMSMD tristate "Qualcomm SMD based HCI support" - depends on (QCOM_SMD && QCOM_WCNSS_CTRL) || COMPILE_TEST + depends on (QCOM_SMD && QCOM_WCNSS_CTRL) || (COMPILE_TEST && QCOM_SMD=n) select BT_QCA help Qualcomm SMD based HCI driver.
Signature · 1 line
2.9.0
Hello Arnd,
Quoted 8 lines · Arnd Bergmann
compile-testing fails when
QCOM_SMDis a loadable module:
drivers/bluetooth/built-in.o: In function `btqcomsmd_send':
btqca.c:(.text+0xa8): undefined reference toqcom_smd_send' drivers/bluetooth/built-in.o: In functionbtqcomsmd_probe':
btqca.c:(.text+0x3ec): undefined reference toqcom_wcnss_open_channel' btqca.c:(.text+0x46c): undefined reference toqcom_smd_set_drvdata'
Quoted 7 lines
This clarifies the dependency to allow compile-testing only when SMD is completely disabled, otherwise the dependency on
QCOM_SMDwill make sure we can link against it.Fixes e27ee2b16bad ("Bluetooth: btqcomsmd: Allow driver to build if COMPILE_TEST is enabled")Signed-off-by Arnd Bergmann <[email protected]>---
Thanks for the fix. The patch looks good to me.
Best regards,
Signature · 3 lines
Javier Martinez Canillas Open Source Group Samsung Research America