summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-04-13 10:22:13 +0200
committerThomas Gleixner <tglx@linutronix.de>2020-04-15 11:13:12 +0200
commitb0e387c3ec0170b429f15c53b6183fe1c691403b (patch)
tree58309ec5841d624d667bed3549b4f5d10b1e9db6 /arch
parentx86/microcode/AMD: Increase microcode PATCH_MAX_SIZE (diff)
downloadlinux-b0e387c3ec0170b429f15c53b6183fe1c691403b.tar.xz
linux-b0e387c3ec0170b429f15c53b6183fe1c691403b.zip
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@huawei.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com> Link: https://lkml.kernel.org/r/20200413082213.22934-1-yanaijie@huawei.com
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/umip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/umip.c b/arch/x86/kernel/umip.c
index 4d732a444711..8d5cbe1bbb3b 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",