Skip to content

Commit 33a8573

Browse files
Jiapeng Chongsuryasaimadhu
authored andcommitted
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
1 parent 230ec83 commit 33a8573

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/cpu/bugs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ enum retbleed_mitigation_cmd {
793793
RETBLEED_CMD_IBPB,
794794
};
795795

796-
const char * const retbleed_strings[] = {
796+
static const char * const retbleed_strings[] = {
797797
[RETBLEED_MITIGATION_NONE] = "Vulnerable",
798798
[RETBLEED_MITIGATION_UNRET] = "Mitigation: untrained return thunk",
799799
[RETBLEED_MITIGATION_IBPB] = "Mitigation: IBPB",

0 commit comments

Comments
 (0)