Commit 64e1f587 authored by Pavel Skripkin's avatar Pavel Skripkin Committed by Ingo Molnar

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: default avatarPavel Skripkin <paskripkin@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210506190726.15575-1-paskripkin@gmail.com
parent 6efb943b
......@@ -75,7 +75,7 @@ do { \
} \
} while (0)
const unsigned char x86nops[] =
static const unsigned char x86nops[] =
{
BYTES_NOP1,
BYTES_NOP2,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment