summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-09-15 15:03:24 +0800
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2020-09-18 22:17:05 -0400
commita27026e95b57acbb8df7182e020b099e7f3b5ac3 (patch)
tree06d9a51e5f76a12cdbf1b77b8a1014b9fcd33723 /init
parent82d083ab60c3693201c6f5c7a5f23a6ed422098d (diff)
downloadlinux-a27026e95b57acbb8df7182e020b099e7f3b5ac3.tar.bz2
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/20200915070324.2239473-1-yanaijie@huawei.com Reported-by: Hulk Robot <hulkci@huawei.com> Acked-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'init')
-rw-r--r--init/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c
index 038128b2a755..e880b4ecb314 100644
--- a/init/main.c
+++ b/init/main.c
@@ -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)