]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btqcomsmd: fix compile-test dependency
authorArnd Bergmann <arnd@arndb.de>
Mon, 20 Mar 2017 22:31:10 +0000 (15:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Mar 2017 02:22:04 +0000 (19:22 -0700)
commita9e82b0f55eae3f6bb7d377d2738443867b3f3c1
tree53cebc4ff60f1754a60574817d841217a04eb3a8
parent33b50a67d8f0343641d774c2bc9e2fe4a90e1957
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.

Fixes: 2a07e66d90b0 ("Bluetooth: btqcomsmd: Allow driver to build if COMPILE_TEST is enabled")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[bjorn: Restructure and clarify dependency to QCOM_WCNSS_CTRL]
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/bluetooth/Kconfig