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)
commitdea4bd1975e36e3127a95e74c3670ea8d7f4796f
treea683663f79ad20223ade53270ef58f084597ecde
parent99a31adfb2ffbdc6a5cdcec4e119830cf4c19352
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>
drivers/remoteproc/Kconfig
drivers/soc/qcom/Kconfig
samples/Kconfig