]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
soc: qcom: qmi: add CONFIG_NET dependency
authorArnd Bergmann <arnd@arndb.de>
Thu, 22 Feb 2018 15:57:38 +0000 (16:57 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 27 Mar 2018 20:43:29 +0000 (13:43 -0700)
Access to the socket API and the root network namespace is only available
when networking is enabled:

ERROR: "kernel_sendmsg" [drivers/soc/qcom/qmi_helpers.ko] undefined!
ERROR: "sock_release" [drivers/soc/qcom/qmi_helpers.ko] undefined!
ERROR: "sock_create_kern" [drivers/soc/qcom/qmi_helpers.ko] undefined!
ERROR: "kernel_getsockname" [drivers/soc/qcom/qmi_helpers.ko] undefined!
ERROR: "init_net" [drivers/soc/qcom/qmi_helpers.ko] undefined!
ERROR: "kernel_recvmsg" [drivers/soc/qcom/qmi_helpers.ko] undefined!

Adding a dependency on CONFIG_NET lets us build it in all randconfig
builds.

Fixes: 9b8a11e82615 ("soc: qcom: Introduce QMI encoder/decoder")
Acked-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/Kconfig
drivers/soc/qcom/Kconfig
samples/Kconfig

index a3658aa018386e361dce66e74b54797c461fd8e6..027274008b086d6f421a3aa0c0ecf5cf2804cb76 100644 (file)
@@ -121,6 +121,7 @@ config QCOM_SYSMON
        tristate "Qualcomm sysmon driver"
        depends on RPMSG
        depends on ARCH_QCOM
+       depends on NET
        select QCOM_QMI_HELPERS
        help
          The sysmon driver implements a sysmon QMI client and a handler for
index e050eb83341d052e31cbfb3706bae48870b23687..506763d81766c0eb361e340cc4323a982791190e 100644 (file)
@@ -37,7 +37,7 @@ config QCOM_PM
 
 config QCOM_QMI_HELPERS
        tristate
-       depends on ARCH_QCOM
+       depends on ARCH_QCOM && NET
        help
          Helper library for handling QMI encoded messages.  QMI encoded
          messages are used in communication between the majority of QRTR
index 4cb8af2f810f159d047ed2032cd73b43ebdb63e3..168291de018445f462d3632632086ac722c1c53d 100644 (file)
@@ -66,6 +66,7 @@ config SAMPLE_QMI_CLIENT
        tristate "Build qmi client sample -- loadable modules only"
        depends on m
        depends on ARCH_QCOM
+       depends on NET
        select QCOM_QMI_HELPERS
        help
          Build an QMI client sample driver, which demonstrates how to