]> Git Repo - linux.git/commitdiff
bootconfig: init: make xbc_namebuf static
authorJason Yan <[email protected]>
Tue, 15 Sep 2020 07:03:24 +0000 (15:03 +0800)
committerSteven Rostedt (VMware) <[email protected]>
Sat, 19 Sep 2020 02:17:05 +0000 (22:17 -0400)
This eliminates the following sparse warning:

init/main.c:306:6: warning: symbol 'xbc_namebuf' was not declared.
Should it be static?

Link: https://lkml.kernel.org/r/[email protected]
Reported-by: Hulk Robot <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Jason Yan <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
init/main.c

index 038128b2a755176d2e91c92aabaa59913851f4a1..e880b4ecb31474f4578bf0c7c7d2f74c161eb6ce 100644 (file)
@@ -304,7 +304,7 @@ static void * __init get_boot_config_from_initrd(u32 *_size, u32 *_csum)
 
 #ifdef CONFIG_BOOT_CONFIG
 
-char xbc_namebuf[XBC_KEYLEN_MAX] __initdata;
+static char xbc_namebuf[XBC_KEYLEN_MAX] __initdata;
 
 #define rest(dst, end) ((end) > (dst) ? (end) - (dst) : 0)
 
This page took 0.057266 seconds and 4 git commands to generate.