x86/umip: make umip_insns static
PATCH 1/1 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]>
--- arch/x86/kernel/umip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/umip.c +1 -1
@@ -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" ,
Signature · 1 line
2.21.1
Quoted 7 lines · Jason Yan
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]>
FWIW. This looks good to me.
Acked-by Ricardo Neri <[email protected]>
Thanks and BR,
Ricardo
[tip: x86/urgent] x86/umip: Make umip_insns static
In reply to Jason YanThe following commit has been merged into the x86/urgent branch of tip:
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 <[email protected]> AuthorDate: Mon, 13 Apr 2020 16:22:13 +08:00 Committer: Thomas Gleixner <[email protected]> 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 <[email protected]>
Signed-off-by Jason Yan <[email protected]>
Signed-off-by Thomas Gleixner <[email protected]>
Acked-by Ricardo Neri <[email protected]>
--- arch/x86/kernel/umip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/umip.c +1 -1
@@ -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" ,