[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210408062012.85973-1-pulehui@huawei.com>
Date: Thu, 8 Apr 2021 14:20:12 +0800
From: Pu Lehui <pulehui@...wei.com>
To: <mpe@...erman.id.au>, <benh@...nel.crashing.org>,
<paulus@...ba.org>, <joel@....id.au>, <christophe.leroy@....fr>
CC: <linuxppc-dev@...ts.ozlabs.org>, <linux-kernel@...r.kernel.org>,
<zhangjinhao2@...wei.com>, <yangjihong1@...wei.com>,
<pulehui@...wei.com>
Subject: [PATCH -next] powerpc/fadump: make symbol 'rtas_fadump_set_regval' static
Fix sparse warnings:
arch/powerpc/platforms/pseries/rtas-fadump.c:250:6: warning:
symbol 'rtas_fadump_set_regval' was not declared. Should it be static?
Signed-off-by: Pu Lehui <pulehui@...wei.com>
---
arch/powerpc/platforms/pseries/rtas-fadump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/platforms/pseries/rtas-fadump.c b/arch/powerpc/platforms/pseries/rtas-fadump.c
index 81343908ed33..f8f73b47b107 100644
--- a/arch/powerpc/platforms/pseries/rtas-fadump.c
+++ b/arch/powerpc/platforms/pseries/rtas-fadump.c
@@ -247,7 +247,7 @@ static inline int rtas_fadump_gpr_index(u64 id)
return i;
}
-void rtas_fadump_set_regval(struct pt_regs *regs, u64 reg_id, u64 reg_val)
+static void rtas_fadump_set_regval(struct pt_regs *regs, u64 reg_id, u64 reg_val)
{
int i;
--
2.17.1
Powered by blists - more mailing lists