* [PATCH -next] MIPS: pm-cps: Make '__pcpu_scope_cps_cpu_state' static
@ 2021-05-28 7:04 Ruiqi Gong
2021-06-01 9:29 ` Thomas Bogendoerfer
0 siblings, 1 reply; 2+ messages in thread
From: Ruiqi Gong @ 2021-05-28 7:04 UTC (permalink / raw)
To: gongruiqi1, Thomas Bogendoerfer
Cc: Wang Weiyang, linux-mips, kernel-janitors, linux-kernel
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 <hulkci@huawei.com>
Signed-off-by: Ruiqi Gong <gongruiqi1@huawei.com>
---
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];
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] MIPS: pm-cps: Make '__pcpu_scope_cps_cpu_state' static
2021-05-28 7:04 [PATCH -next] MIPS: pm-cps: Make '__pcpu_scope_cps_cpu_state' static Ruiqi Gong
@ 2021-06-01 9:29 ` Thomas Bogendoerfer
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Bogendoerfer @ 2021-06-01 9:29 UTC (permalink / raw)
To: Ruiqi Gong; +Cc: Wang Weiyang, linux-mips, kernel-janitors, linux-kernel
On Fri, May 28, 2021 at 03:04:37PM +0800, Ruiqi Gong wrote:
> 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?
did you compile/link a kernel with this patch ? I doubt that since there
is a refernec to this symbol in arch/mips/kernel/cps-vec.S.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-01 9:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-28 7:04 [PATCH -next] MIPS: pm-cps: Make '__pcpu_scope_cps_cpu_state' static Ruiqi Gong
2021-06-01 9:29 ` Thomas Bogendoerfer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).