aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-02-22 10:57:38 -0500
committerBjorn Andersson <bjorn.andersson@linaro.org>2018-03-27 16:43:29 -0400
commitdea4bd1975e36e3127a95e74c3670ea8d7f4796f (patch)
treea683663f79ad20223ade53270ef58f084597ecde
parent99a31adfb2ffbdc6a5cdcec4e119830cf4c19352 (diff)
soc: qcom: qmi: add CONFIG_NET dependency
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>
-rw-r--r--drivers/remoteproc/Kconfig1
-rw-r--r--drivers/soc/qcom/Kconfig2
-rw-r--r--samples/Kconfig1
3 files changed, 3 insertions, 1 deletions
diff --git a/drivers/remoteproc/Kconfig b/drivers/remoteproc/Kconfig
index a3658aa01838..027274008b08 100644
--- a/drivers/remoteproc/Kconfig
+++ b/drivers/remoteproc/Kconfig
@@ -121,6 +121,7 @@ config QCOM_SYSMON
121 tristate "Qualcomm sysmon driver" 121 tristate "Qualcomm sysmon driver"
122 depends on RPMSG 122 depends on RPMSG
123 depends on ARCH_QCOM 123 depends on ARCH_QCOM
124 depends on NET
124 select QCOM_QMI_HELPERS 125 select QCOM_QMI_HELPERS
125 help 126 help
126 The sysmon driver implements a sysmon QMI client and a handler for 127 The sysmon driver implements a sysmon QMI client and a handler for
diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig
index e050eb83341d..506763d81766 100644
--- a/drivers/soc/qcom/Kconfig
+++ b/drivers/soc/qcom/Kconfig
@@ -37,7 +37,7 @@ config QCOM_PM
37 37
38config QCOM_QMI_HELPERS 38config QCOM_QMI_HELPERS
39 tristate 39 tristate
40 depends on ARCH_QCOM 40 depends on ARCH_QCOM && NET
41 help 41 help
42 Helper library for handling QMI encoded messages. QMI encoded 42 Helper library for handling QMI encoded messages. QMI encoded
43 messages are used in communication between the majority of QRTR 43 messages are used in communication between the majority of QRTR
diff --git a/samples/Kconfig b/samples/Kconfig
index 4cb8af2f810f..168291de0184 100644
--- a/samples/Kconfig
+++ b/samples/Kconfig
@@ -66,6 +66,7 @@ config SAMPLE_QMI_CLIENT
66 tristate "Build qmi client sample -- loadable modules only" 66 tristate "Build qmi client sample -- loadable modules only"
67 depends on m 67 depends on m
68 depends on ARCH_QCOM 68 depends on ARCH_QCOM
69 depends on NET
69 select QCOM_QMI_HELPERS 70 select QCOM_QMI_HELPERS
70 help 71 help
71 Build an QMI client sample driver, which demonstrates how to 72 Build an QMI client sample driver, which demonstrates how to