Skip to content

Commit 64e1f58

Browse files
pskrgagingomolnar
authored andcommitted
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
1 parent 6efb943 commit 64e1f58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/kernel/alternative.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ do { \
7575
} \
7676
} while (0)
7777

78-
const unsigned char x86nops[] =
78+
static const unsigned char x86nops[] =
7979
{
8080
BYTES_NOP1,
8181
BYTES_NOP2,

0 commit comments

Comments
 (0)