[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210331064941.134333-1-heying24@huawei.com>
Date: Wed, 31 Mar 2021 02:49:41 -0400
From: He Ying <heying24@...wei.com>
To: <gregkh@...uxfoundation.org>, <nsaenzjulienne@...e.de>,
<sudeep.holla@....com>, <linus.walleij@...aro.org>,
<robh@...nel.org>, <john.stultz@...aro.org>,
<colin.king@...onical.com>
CC: <heying24@...wei.com>, <linux-kernel@...r.kernel.org>
Subject: [PATCH] firmware: qcom-scm: Fix QCOM_SCM configuration
When CONFIG_QCOM_SCM is y while CONFIG_HAVE_ARM_SMCCC
is not set, compiling errors are encountered as follows:
drivers/firmware/qcom_scm-smc.o: In function `__scm_smc_do_quirk':
qcom_scm-smc.c:(.text+0x36): undefined reference to `__arm_smccc_smc'
drivers/firmware/qcom_scm-legacy.o: In function `scm_legacy_call':
qcom_scm-legacy.c:(.text+0xe2): undefined reference to `__arm_smccc_smc'
drivers/firmware/qcom_scm-legacy.o: In function `scm_legacy_call_atomic':
qcom_scm-legacy.c:(.text+0x1f0): undefined reference to `__arm_smccc_smc'
So add dependency on HAVE_ARM_SMCCC in QCOM_SCM configuration.
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: He Ying <heying24@...wei.com>
---
drivers/firmware/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig
index 3f14dffb9669..5dd19dbd67a3 100644
--- a/drivers/firmware/Kconfig
+++ b/drivers/firmware/Kconfig
@@ -237,6 +237,7 @@ config INTEL_STRATIX10_RSU
config QCOM_SCM
bool
depends on ARM || ARM64
+ depends on HAVE_ARM_SMCCC
select RESET_CONTROLLER
config QCOM_SCM_DOWNLOAD_MODE_DEFAULT
--
2.17.1
Powered by blists - more mailing lists