[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210528070437.5780-1-gongruiqi1@huawei.com>
Date: Fri, 28 May 2021 15:04:37 +0800
From: Ruiqi Gong <gongruiqi1@...wei.com>
To: <gongruiqi1@...wei.com>,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>
CC: Wang Weiyang <wangweiyang2@...wei.com>,
<linux-mips@...r.kernel.org>, <kernel-janitors@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH -next] MIPS: pm-cps: Make '__pcpu_scope_cps_cpu_state' static
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@...wei.com>
Signed-off-by: Ruiqi Gong <gongruiqi1@...wei.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];
Powered by blists - more mailing lists