Skip to content

Commit a27026e

Browse files
JasonYanHwrostedt
authored andcommitted
bootconfig: init: make xbc_namebuf static
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]>
1 parent 82d083a commit a27026e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ static void * __init get_boot_config_from_initrd(u32 *_size, u32 *_csum)
304304

305305
#ifdef CONFIG_BOOT_CONFIG
306306

307-
char xbc_namebuf[XBC_KEYLEN_MAX] __initdata;
307+
static char xbc_namebuf[XBC_KEYLEN_MAX] __initdata;
308308

309309
#define rest(dst, end) ((end) > (dst) ? (end) - (dst) : 0)
310310

0 commit comments

Comments
 (0)