diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2022-07-14 10:29:39 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2022-07-14 10:41:30 +0300 |
commit | 33a8573bdfeec5b746aedeea880733a4c7993158 (patch) | |
tree | 5fdcddfb32406ee6665d7d55d13fd6b6d01c61fb /arch | |
parent | 230ec83d4299b30c51a1c133b4f2a669972cc08a (diff) | |
download | linux-33a8573bdfeec5b746aedeea880733a4c7993158.tar.xz |
x86/bugs: Mark retbleed_strings static
This symbol is not used outside of bugs.c, so mark it static.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220714072939.71162-1-jiapeng.chong@linux.alibaba.com
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/cpu/bugs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c index 0dd04713434b..3a0787a36910 100644 --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -793,7 +793,7 @@ enum retbleed_mitigation_cmd { RETBLEED_CMD_IBPB, }; -const char * const retbleed_strings[] = { +static const char * const retbleed_strings[] = { [RETBLEED_MITIGATION_NONE] = "Vulnerable", [RETBLEED_MITIGATION_UNRET] = "Mitigation: untrained return thunk", [RETBLEED_MITIGATION_IBPB] = "Mitigation: IBPB", |