summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/setup.c
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-09-11 04:01:32 +0200
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-09-21 22:08:18 +0200
commitd976ae6ba04cdbe62a60fc6dc6f363da596d5622 (patch)
tree8d5e55eb819ce616ce6c62a16fe55a9687705926 /arch/mips/kernel/setup.c
parentMAINTAINERS: Update paths to Ingenic platform code (diff)
downloadlinux-d976ae6ba04cdbe62a60fc6dc6f363da596d5622.tar.xz
linux-d976ae6ba04cdbe62a60fc6dc6f363da596d5622.zip
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 <hulkci@huawei.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/kernel/setup.c')
-rw-r--r--arch/mips/kernel/setup.c2
1 files changed, 1 insertions, 1 deletions
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;