soc: qcom: stats: Express AOSS QMP module dependency
authorBjorn Andersson <quic_bjorande@quicinc.com>
Wed, 6 Dec 2023 04:38:40 +0000 (20:38 -0800)
committerBjorn Andersson <andersson@kernel.org>
Thu, 7 Dec 2023 15:22:00 +0000 (07:22 -0800)
commit70b139a7af7106b59ca5ca77673a9c56982b3089
treebc1822aa6e72fae6e2f1f4a7961cc53f50ba44cc
parent73380e2573c34a45e01786750a4a2efafc2248bd
soc: qcom: stats: Express AOSS QMP module dependency

In the case that the Qualcomm Sleep stats driver is builtin and the AOSS
QMP driver is built as a module, neither the implementation nor the stub
functions are available during linking, resulting in the following
errors:

  qcom_stats.c:(.text+0x33c): undefined reference to `qmp_send'
  qcom_stats.c:(.text+0x8a0): undefined reference to `qmp_get'

Resolve this by expressing the dependency between the two modules.

Fixes: e84e61bdb97c ("soc: qcom: stats: Add DDR sleep stats")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/linux-arm-msm/202312061258.nAVYPFq2-lkp@intel.com/
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20231205-qcom_stats-aoss_qmp-dependency-v1-1-8dabe1b5c32a@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/Kconfig