[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <165779691246.15455.16253032169822799893.tip-bot2@tip-bot2>
Date: Thu, 14 Jul 2022 11:08:32 -0000
From: "tip-bot2 for Jiapeng Chong" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Abaci Robot <abaci@...ux.alibaba.com>,
Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>,
Borislav Petkov <bp@...e.de>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip: x86/urgent] x86/bugs: Mark retbleed_strings static
The following commit has been merged into the x86/urgent branch of tip:
Commit-ID: 33a8573bdfeec5b746aedeea880733a4c7993158
Gitweb: https://git.kernel.org/tip/33a8573bdfeec5b746aedeea880733a4c7993158
Author: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
AuthorDate: Thu, 14 Jul 2022 15:29:39 +08:00
Committer: Borislav Petkov <bp@...e.de>
CommitterDate: Thu, 14 Jul 2022 09:41:30 +02:00
x86/bugs: Mark retbleed_strings static
This symbol is not used outside of bugs.c, so mark it static.
Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
Signed-off-by: Borislav Petkov <bp@...e.de>
Link: https://lore.kernel.org/r/20220714072939.71162-1-jiapeng.chong@linux.alibaba.com
---
arch/x86/kernel/cpu/bugs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c
index 0dd0471..3a0787a 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",
Powered by blists - more mailing lists