forked from Minki/linux
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
This commit is contained in:
parent
6efb943b86
commit
64e1f5872a
@ -75,7 +75,7 @@ do { \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
const unsigned char x86nops[] =
|
||||
static const unsigned char x86nops[] =
|
||||
{
|
||||
BYTES_NOP1,
|
||||
BYTES_NOP2,
|
||||
|
Loading…
Reference in New Issue
Block a user