summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/alternative.c
diff options
context:
space:
mode:
authorPavel Skripkin <paskripkin@gmail.com>2021-05-06 22:07:26 +0300
committerIngo Molnar <mingo@kernel.org>2021-05-12 12:22:56 +0200
commit64e1f5872a8c3d80bce4686b4ab5dbc6e6bd30c5 (patch)
tree3c18eb93362287858a6e4674179d5da837306841 /arch/x86/kernel/alternative.c
parent6efb943b8616ec53a5e444193dccf1af9ad627b5 (diff)
downloadlinux-stable-64e1f5872a8c3d80bce4686b4ab5dbc6e6bd30c5.tar.gz
linux-stable-64e1f5872a8c3d80bce4686b4ab5dbc6e6bd30c5.tar.bz2
linux-stable-64e1f5872a8c3d80bce4686b4ab5dbc6e6bd30c5.zip
x86/alternatives: Make the x86nops[] symbol static
Sparse says: arch/x86/kernel/alternative.c:78:21: warning: symbol 'x86nops' was not declared. Should it be static? Since x86nops[] is not used outside this file, Sparse is right and it can be made static. Signed-off-by: Pavel Skripkin <paskripkin@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20210506190726.15575-1-paskripkin@gmail.com
Diffstat (limited to 'arch/x86/kernel/alternative.c')
-rw-r--r--arch/x86/kernel/alternative.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c
index 6974b5174495..75c752b0628c 100644
--- a/arch/x86/kernel/alternative.c
+++ b/arch/x86/kernel/alternative.c
@@ -75,7 +75,7 @@ do { \
} \
} while (0)
-const unsigned char x86nops[] =
+static const unsigned char x86nops[] =
{
BYTES_NOP1,
BYTES_NOP2,