MIPS: Make setup_elfcorehdr and setup_elfcorehdr_size static
authorJason Yan <yanaijie@huawei.com>
Fri, 11 Sep 2020 02:01:32 +0000 (10:01 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 21 Sep 2020 20:08:18 +0000 (22:08 +0200)
This addresses the following sparse warning:

arch/mips/kernel/setup.c:446:33: warning: symbol 'setup_elfcorehdr_size'
was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/setup.c

index bf5f5acab0a82ff9c9db138797e5006ccf5ee6ca..8589a34c28defac95bbc441383a8b6437bb47d9c 100644 (file)
@@ -447,7 +447,7 @@ static int __init early_parse_memmap(char *p)
 early_param("memmap", early_parse_memmap);
 
 #ifdef CONFIG_PROC_VMCORE
-unsigned long setup_elfcorehdr, setup_elfcorehdr_size;
+static unsigned long setup_elfcorehdr, setup_elfcorehdr_size;
 static int __init early_parse_elfcorehdr(char *p)
 {
        struct memblock_region *mem;