From: Jason Yan Date: Fri, 11 Sep 2020 02:01:32 +0000 (+0800) Subject: MIPS: Make setup_elfcorehdr and setup_elfcorehdr_size static X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~982^2~37 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=d976ae6ba04cdbe62a60fc6dc6f363da596d5622;p=linux.git MIPS: Make setup_elfcorehdr and setup_elfcorehdr_size static 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 Signed-off-by: Jason Yan Signed-off-by: Thomas Bogendoerfer --- diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index bf5f5acab0a8..8589a34c28de 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -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;