aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/security.c
diff options
context:
space:
mode:
authorGravatar Li Huafei <lihuafei1@huawei.com> 2021-04-08 11:39:51 +0800
committerGravatar Michael Ellerman <mpe@ellerman.id.au> 2021-04-14 23:04:13 +1000
commit7f262b4dcf7edf75097c3946e676d6c6d77fc599 (patch)
tree4d1eb0dea4dacd6e73dbbb406120060288b7f72f /arch/powerpc/kernel/security.c
parentpowerpc/32s: Define a MODULE area below kernel text all the time (diff)
downloadlinux-7f262b4dcf7edf75097c3946e676d6c6d77fc599.tar.gz
linux-7f262b4dcf7edf75097c3946e676d6c6d77fc599.tar.bz2
linux-7f262b4dcf7edf75097c3946e676d6c6d77fc599.zip
powerpc/security: Make symbol 'stf_barrier' static
The sparse tool complains as follows: arch/powerpc/kernel/security.c:253:6: warning: symbol 'stf_barrier' was not declared. Should it be static? This symbol is not used outside of security.c, so this commit marks it static. Signed-off-by: Li Huafei <lihuafei1@huawei.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210408033951.28369-1-lihuafei1@huawei.com
Diffstat (limited to 'arch/powerpc/kernel/security.c')
-rw-r--r--arch/powerpc/kernel/security.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/security.c b/arch/powerpc/kernel/security.c
index 287286ddf7dc..0fdfcdd9d880 100644
--- a/arch/powerpc/kernel/security.c
+++ b/arch/powerpc/kernel/security.c
@@ -252,7 +252,7 @@ ssize_t cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr, c
static enum stf_barrier_type stf_enabled_flush_types;
static bool no_stf_barrier;
-bool stf_barrier;
+static bool stf_barrier;
static int __init handle_no_stf_barrier(char *p)
{