Skip to content

Commit dea4bd1

Browse files
arndbandersson
authored andcommitted
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: 9b8a11e ("soc: qcom: Introduce QMI encoder/decoder") Acked-by: Andy Gross <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 99a31ad commit dea4bd1

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

drivers/remoteproc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ config QCOM_SYSMON
121121
tristate "Qualcomm sysmon driver"
122122
depends on RPMSG
123123
depends on ARCH_QCOM
124+
depends on NET
124125
select QCOM_QMI_HELPERS
125126
help
126127
The sysmon driver implements a sysmon QMI client and a handler for

drivers/soc/qcom/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ config QCOM_PM
3737

3838
config QCOM_QMI_HELPERS
3939
tristate
40-
depends on ARCH_QCOM
40+
depends on ARCH_QCOM && NET
4141
help
4242
Helper library for handling QMI encoded messages. QMI encoded
4343
messages are used in communication between the majority of QRTR

samples/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ config SAMPLE_QMI_CLIENT
6666
tristate "Build qmi client sample -- loadable modules only"
6767
depends on m
6868
depends on ARCH_QCOM
69+
depends on NET
6970
select QCOM_QMI_HELPERS
7071
help
7172
Build an QMI client sample driver, which demonstrates how to

0 commit comments

Comments
 (0)