From: Arnd Bergmann <arnd@xxxxxxxx> Using the QMP functions fails in a built-in driver when QMP is a loadable module: aarch64-linux-ld: drivers/soc/qcom/qcom_stats.o: in function `qcom_ddr_stats_show': qcom_stats.c:(.text+0x6f4): undefined reference to `qmp_send' aarch64-linux-ld: drivers/soc/qcom/qcom_stats.o: in function `qcom_stats_probe': qcom_stats.c:(.text+0x117c): undefined reference to `qmp_get' Fixes: e84e61bdb97c ("soc: qcom: stats: Add DDR sleep stats") Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx> --- drivers/soc/qcom/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index bf213b514a52..a55f9d6c392a 100644 --- a/drivers/soc/qcom/Kconfig +++ b/drivers/soc/qcom/Kconfig @@ -222,6 +222,7 @@ config QCOM_STATS tristate "Qualcomm Technologies, Inc. (QTI) Sleep stats driver" depends on (ARCH_QCOM && DEBUG_FS) || COMPILE_TEST depends on QCOM_SMEM + depends on QCOM_AOSS_QMP || !QCOM_AOSS_QMP help Qualcomm Technologies, Inc. (QTI) Sleep stats driver to read the shared memory exported by the remote processor related to -- 2.39.2