]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: ipa: add config dependency on QCOM_SMEM
authorAlex Elder <elder@linaro.org>
Tue, 12 Jan 2021 19:21:34 +0000 (13:21 -0600)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Jan 2021 04:11:38 +0000 (20:11 -0800)
The IPA driver depends on some SMEM functionality (qcom_smem_init(),
qcom_smem_alloc(), and qcom_smem_virt_to_phys()), but this is not
reflected in the configuration dependencies.  Add a dependency on
QCOM_SMEM to avoid attempts to build the IPA driver without SMEM.
This avoids a link error for certain configurations.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Fixes: 346da5dc2eca6 ("net: ipa: support COMPILE_TEST")
Signed-off-by: Alex Elder <elder@linaro.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210112192134.493-1-elder@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/Kconfig

index 10a0e041ee7754ff5f3e312f19e869c4c4b29f7f..b68f1289b89ef1005bcf4214191022b3d7de818b 100644 (file)
@@ -1,6 +1,6 @@
 config QCOM_IPA
        tristate "Qualcomm IPA support"
-       depends on 64BIT && NET
+       depends on 64BIT && NET && QCOM_SMEM
        depends on ARCH_QCOM || COMPILE_TEST
        depends on QCOM_RPROC_COMMON || (QCOM_RPROC_COMMON=n && COMPILE_TEST)
        select QCOM_MDT_LOADER if ARCH_QCOM