soc: qcom: enable smsm/smp2p modular build
Subsystems (2)
PATCH v2 1/1 soc: qcom: enable smsm/smp2p modular build
The newly added smp2p and smsm drivers cannot be loadable modules but depend on smem, which can be, and that causes a link error:
drivers/built-in.o: In function `qcom_smp2p_intr':
:(.text+0xa6e68): undefined reference to qcom_smem_get' drivers/built-in.o: In function qcom_smp2p_probe':
:(.text+0xa7320): undefined reference to qcom_smem_alloc' :(.text+0xa736c): undefined reference to qcom_smem_get' drivers/built-in.o: In function `qcom_smsm_probe':
:(.text+0xa7b34): undefined reference to `qcom_smem_get'
This marks all the drivers as 'tristate' to make the Kconfig dependency resolution work properly.
---
v2: fixed subject line
drivers/soc/qcom/Kconfig +2 -2
@@ -54,7 +54,7 @@ config QCOM_SMEM_STATE bool config QCOM_SMP2P - bool "Qualcomm Shared Memory Point to Point support" + tristate "Qualcomm Shared Memory Point to Point support" depends on QCOM_SMEM select QCOM_SMEM_STATE help
@@ -62,7 +62,7 @@ config QCOM_SMP2P protocol. config QCOM_SMSM - bool "Qualcomm Shared Memory State Machine" + tristate "Qualcomm Shared Memory State Machine" depends on QCOM_SMEM select QCOM_SMEM_STATE help
Quoted 11 lines · Arnd Bergmann
The newly added smp2p and smsm drivers cannot be loadable modules but depend on smem, which can be, and that causes a link error:
drivers/built-in.o: In function `qcom_smp2p_intr':
:(.text+0xa6e68): undefined reference toqcom_smem_get' drivers/built-in.o: In functionqcom_smp2p_probe':
:(.text+0xa7320): undefined reference toqcom_smem_alloc' :(.text+0xa736c): undefined reference toqcom_smem_get'drivers/built-in.o: In function `qcom_smsm_probe':
:(.text+0xa7b34): undefined reference to `qcom_smem_get'
Quoted 2 lines
This marks all the drivers as 'tristate' to make the
Kconfigdependency resolution work properly.
Nice catch. I'll add this on top of those.
Signature · 3 lines
Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project