From: Pavel Skripkin Date: Thu, 6 May 2021 19:07:26 +0000 (+0300) Subject: x86/alternatives: Make the x86nops[] symbol static X-Git-Tag: v5.14-rc1~172^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=64e1f5872a8c3d80bce4686b4ab5dbc6e6bd30c5;p=thirdparty%2Flinux.git 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 Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20210506190726.15575-1-paskripkin@gmail.com --- diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index 6974b51744955..75c752b0628c1 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,