From: Bixuan Cui Date: Fri, 9 Apr 2021 09:01:09 +0000 (+0800) Subject: powerpc/pseries: Make symbol '__pcpu_scope_hcall_stats' static X-Git-Tag: v5.13-rc1~90^2~102 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=193e4cd8ed9dd01092d01df7706a6b344c946af4;p=linux-block.git powerpc/pseries: Make symbol '__pcpu_scope_hcall_stats' static The sparse tool complains as follows: arch/powerpc/platforms/pseries/hvCall_inst.c:29:1: warning: symbol '__pcpu_scope_hcall_stats' was not declared. Should it be static? This symbol is not used outside of hvCall_inst.c, so this commit marks it static. Reported-by: Hulk Robot Signed-off-by: Bixuan Cui Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20210409090109.59347-1-cuibixuan@huawei.com --- diff --git a/arch/powerpc/platforms/pseries/hvCall_inst.c b/arch/powerpc/platforms/pseries/hvCall_inst.c index 2c59b4986ea5..3a50612a78db 100644 --- a/arch/powerpc/platforms/pseries/hvCall_inst.c +++ b/arch/powerpc/platforms/pseries/hvCall_inst.c @@ -26,7 +26,7 @@ struct hcall_stats { }; #define HCALL_STAT_ARRAY_SIZE ((MAX_HCALL_OPCODE >> 2) + 1) -DEFINE_PER_CPU(struct hcall_stats[HCALL_STAT_ARRAY_SIZE], hcall_stats); +static DEFINE_PER_CPU(struct hcall_stats[HCALL_STAT_ARRAY_SIZE], hcall_stats); /* * Routines for displaying the statistics in debugfs