[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <158694243002.28353.9318430528577109181.tip-bot2@tip-bot2>
Date: Wed, 15 Apr 2020 09:20:30 -0000
From: "tip-bot2 for Jason Yan" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Hulk Robot <hulkci@...wei.com>, Jason Yan <yanaijie@...wei.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ricardo Neri <ricardo.neri-calderon@...ux.intel.com>,
x86 <x86@...nel.org>, LKML <linux-kernel@...r.kernel.org>
Subject: [tip: x86/urgent] x86/umip: Make umip_insns static
The following commit has been merged into the x86/urgent branch of tip:
Commit-ID: b0e387c3ec0170b429f15c53b6183fe1c691403b
Gitweb: https://git.kernel.org/tip/b0e387c3ec0170b429f15c53b6183fe1c691403b
Author: Jason Yan <yanaijie@...wei.com>
AuthorDate: Mon, 13 Apr 2020 16:22:13 +08:00
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitterDate: Wed, 15 Apr 2020 11:13:12 +02:00
x86/umip: Make umip_insns static
Fix the following sparse warning:
arch/x86/kernel/umip.c:84:12: warning: symbol 'umip_insns' was not declared.
Should it be static?
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Jason Yan <yanaijie@...wei.com>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Acked-by: Ricardo Neri <ricardo.neri-calderon@...ux.intel.com>
Link: https://lkml.kernel.org/r/20200413082213.22934-1-yanaijie@huawei.com
---
arch/x86/kernel/umip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/umip.c b/arch/x86/kernel/umip.c
index 4d732a4..8d5cbe1 100644
--- a/arch/x86/kernel/umip.c
+++ b/arch/x86/kernel/umip.c
@@ -81,7 +81,7 @@
#define UMIP_INST_SLDT 3 /* 0F 00 /0 */
#define UMIP_INST_STR 4 /* 0F 00 /1 */
-const char * const umip_insns[5] = {
+static const char * const umip_insns[5] = {
[UMIP_INST_SGDT] = "SGDT",
[UMIP_INST_SIDT] = "SIDT",
[UMIP_INST_SMSW] = "SMSW",
Powered by blists - more mailing lists