diff options
author | Pavel Skripkin <paskripkin@gmail.com> | 2021-05-06 22:07:26 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2021-05-12 12:22:56 +0200 |
commit | 64e1f5872a8c3d80bce4686b4ab5dbc6e6bd30c5 (patch) | |
tree | 3c18eb93362287858a6e4674179d5da837306841 /arch/x86/kernel/alternative.c | |
parent | 6efb943b8616ec53a5e444193dccf1af9ad627b5 (diff) |
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.c | 2 |
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, |