diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2014-11-07 09:00:57 +0000 |
---|---|---|
committer | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2014-11-10 07:23:39 +0000 |
commit | ae1ec08a616a0178299f4ae01a3ac3dc4627a036 (patch) | |
tree | 0a22bd9a01bfa5eaaaec4fb828fe3c64418f1be2 | |
parent | 254f4dad95ef5a95ef2d1df5c27eb1727088b97f (diff) |
qcom: scm: fix compliation error.
This patch fixes compilation error if CONFIG_DEBUG_FORCE_WEAK_PER_CPU is
enabled. This is possible wirh randomconfig, so fix it before it blows
off.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
-rw-r--r-- | drivers/soc/qcom/scm-boot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/qcom/scm-boot.c b/drivers/soc/qcom/scm-boot.c index 5710967b489b..ed6ae2da61b6 100644 --- a/drivers/soc/qcom/scm-boot.c +++ b/drivers/soc/qcom/scm-boot.c @@ -21,6 +21,7 @@ #include <soc/qcom/scm.h> #include <soc/qcom/scm-boot.h> +static DEFINE_PER_CPU(void *, last_known_entry); /* * Set the cold/warm boot address for one of the CPU cores. */ @@ -47,7 +48,6 @@ int scm_set_warm_boot_addr(void *entry, int cpu) SCM_FLAG_WARMBOOT_CPU2, SCM_FLAG_WARMBOOT_CPU3, }; - static DEFINE_PER_CPU(void *, last_known_entry); int ret; if (entry == per_cpu(last_known_entry, cpu)) |