Skip to content

Commit

Permalink
MIPS: Make setup_elfcorehdr and setup_elfcorehdr_size static
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jason Yan <[email protected]>
Signed-off-by: Thomas Bogendoerfer <[email protected]>
  • Loading branch information
JasonYanHw authored and tsbogend committed Sep 21, 2020
1 parent d41afc3 commit d976ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d976ae6

Please sign in to comment.