From 0bc76b0988992964d5e7c6567e5c74352b57a522 Mon Sep 17 00:00:00 2001 From: Jordan Crouse Date: Tue, 22 Jan 2019 16:28:26 -0700 Subject: [PATCH] UPSTREAM: drivers: soc: qcom: Fix per_cpu declaration of pending_ipi Switch an accidental use of DEFINE_PER_CPU when the developer clearly wanted to use DECLARE_PER_CPU. CONFIG_DEBUG_FORCE_WEAK_CPU enforces that each per-cpu object in the kernel have a unique name so if one accidently uses DEFINE_PER_CPU_READ_MOSTLY in a header it would define the same symbol in each file that used the header. Fixes: 0aaf4cf7415a ("drivers: soc: qcom: snapshot of idle/sleep driver as of msm-4.14") Change-Id: Ic0dedbadbce4e85f2130ea59c84d1e10767d50d7 Signed-off-by: Jordan Crouse Signed-off-by: Pranav Vashi --- drivers/cpuidle/lpm-levels.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpuidle/lpm-levels.h b/drivers/cpuidle/lpm-levels.h index a8539e77f3dd..7465d348b459 100644 --- a/drivers/cpuidle/lpm-levels.h +++ b/drivers/cpuidle/lpm-levels.h @@ -137,7 +137,7 @@ uint32_t *get_per_cpu_min_residency(int cpu); extern struct lpm_cluster *lpm_root_node; #if defined(CONFIG_SMP) -extern DEFINE_PER_CPU(bool, pending_ipi); +DECLARE_PER_CPU(bool, pending_ipi); static inline bool is_IPI_pending(const struct cpumask *mask) { unsigned int cpu;