Skip to content

Commit b0e387c

Browse files
JasonYanHwKAGA-KOKO
authored andcommitted
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 <[email protected]> Signed-off-by: Jason Yan <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Ricardo Neri <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent bdf89df commit b0e387c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/umip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
#define UMIP_INST_SLDT 3 /* 0F 00 /0 */
8282
#define UMIP_INST_STR 4 /* 0F 00 /1 */
8383

84-
const char * const umip_insns[5] = {
84+
static const char * const umip_insns[5] = {
8585
[UMIP_INST_SGDT] = "SGDT",
8686
[UMIP_INST_SIDT] = "SIDT",
8787
[UMIP_INST_SMSW] = "SMSW",

0 commit comments

Comments
 (0)