Thread (2 messages) 2 messages, 2 authors, 2021-06-01
STALE1823d

[PATCH -next] MIPS: pm-cps: Make '__pcpu_scope_cps_cpu_state' static

From: Ruiqi Gong <hidden>
Date: 2021-05-28 07:13:19
Also in: linux-mips, lkml
Subsystem: mips, the rest · Maintainers: Thomas Bogendoerfer, Linus Torvalds

Mark the per-CPU definition of cps_cpu_state as static to fix the following
sparse tool complain:

arch/mips/kernel/pm-cps.c:66:1: warning:
 symbol '__pcpu_scope_cps_cpu_state' was not declared. Should it be static?

Reported-by: Hulk Robot <redacted>
Signed-off-by: Ruiqi Gong <redacted>
---
 arch/mips/kernel/pm-cps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/kernel/pm-cps.c b/arch/mips/kernel/pm-cps.c
index 9bf60d7d44d3..32e8f0673e06 100644
--- a/arch/mips/kernel/pm-cps.c
+++ b/arch/mips/kernel/pm-cps.c
@@ -63,7 +63,7 @@ static DEFINE_PER_CPU_ALIGNED(cpumask_t, online_coupled);
 static DEFINE_PER_CPU_ALIGNED(atomic_t, pm_barrier);
 
 /* Saved CPU state across the CPS_PM_POWER_GATED state */
-DEFINE_PER_CPU_ALIGNED(struct mips_static_suspend_state, cps_cpu_state);
+static DEFINE_PER_CPU_ALIGNED(struct mips_static_suspend_state, cps_cpu_state);
 
 /* A somewhat arbitrary number of labels & relocs for uasm */
 static struct uasm_label labels[32];
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help