projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
230ec83
)
x86/bugs: Mark retbleed_strings static
author
Jiapeng Chong
<jiapeng.chong@linux.alibaba.com>
Thu, 14 Jul 2022 07:29:39 +0000
(15:29 +0800)
committer
Borislav Petkov
<bp@suse.de>
Thu, 14 Jul 2022 07:41:30 +0000
(09:41 +0200)
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
arch/x86/kernel/cpu/bugs.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/bugs.c
b/arch/x86/kernel/cpu/bugs.c
index 0dd04713434be38574073bf9631ddec9f9b21cda..3a0787a369103a0be6e14753ca007afabab1c4b8 100644
(file)
--- 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",