]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: qcom: scm: Don't break compile test on non-ARM platforms
authorBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 25 Oct 2021 02:58:16 +0000 (19:58 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 25 Oct 2021 19:21:34 +0000 (14:21 -0500)
commit597a562e89f5189af2aa0a269c16fe8e41378b6f
tree909cf02352be7e57cafff0356ede0ed970b43eb6
parent653f987e9563e6086ffc126a4146b0ef41839049
firmware: qcom: scm: Don't break compile test on non-ARM platforms

The introduction of __qcom_scm_set_boot_addr_mc() relies on
cpu_logical_map() and MPIDR_AFFINITY_LEVEL() from smp_plat.h, but only
ARM and ARM64 has this include file, so the introduction of this
dependency broke compile testing on e.g. x86_64.

Make the inclusion of smp_plat.h and the affected function depend on
ARM || ARM64 to allow the code to still be compiled.

Fixes: e253dc59335b ("firmware: qcom: scm: Add support for MC boot address API")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211025025816.2937465-1-bjorn.andersson@linaro.org
drivers/firmware/qcom_scm.c