firmware: qcom-scm: Fix QCOM_SCM configuration
PATCH 1/1 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.
--- drivers/firmware/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/firmware/Kconfig +1 -0
@@ -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
Signature · 1 line
2.17.1
Quoted 10 lines · He Ying
When
CONFIG_QCOM_SCMis y whileCONFIG_HAVE_ARM_SMCCCis 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 functionscm_legacy_call':
qcom_scm-legacy.c:(.text+0xe2): undefined reference to__arm_smccc_smc' drivers/firmware/qcom_scm-legacy.o: In functionscm_legacy_call_atomic':
qcom_scm-legacy.c:(.text+0x1f0): undefined reference to `__arm_smccc_smc'
Quoted 7 lines
So add dependency on
HAVE_ARM_SMCCCinQCOM_SCMconfiguration.Reported-by Hulk Robot <[email protected]>Signed-off-by He Ying <[email protected]>--- drivers/firmware/Kconfig | 1 + 1 file changed, 1 insertion(+)
What commit caused this problem to show up? Please add a "Fixes:" tag in here and resend.
thanks,
greg k-h
Hello,
Quoted 13 lines · Greg KH
Quoted 12 lines · He Ying
When
CONFIG_QCOM_SCMis y whileCONFIG_HAVE_ARM_SMCCCis 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 functionscm_legacy_call':
qcom_scm-legacy.c:(.text+0xe2): undefined reference to__arm_smccc_smc' drivers/firmware/qcom_scm-legacy.o: In functionscm_legacy_call_atomic':
qcom_scm-legacy.c:(.text+0x1f0): undefined reference to `__arm_smccc_smc'So add dependency on
HAVE_ARM_SMCCCinQCOM_SCMconfiguration.
Quoted 7 lines
Quoted 5 lines
Reported-by Hulk Robot <[email protected]>Signed-off-by He Ying <[email protected]>--- drivers/firmware/Kconfig | 1 + 1 file changed, 1 insertion(+)What commit caused this problem to show up? Please add a "Fixes:" tag in here and resend.
OK. I'll resend.
Thanks.