Skip to content

Commit c37e56c

Browse files
Baoquan Heakpm00
Baoquan He
authored andcommitted
crash_core.c: remove unneeded functions
So far, nobody calls functions parse_crashkernel_high() and parse_crashkernel_low(), remove both of them. Link: https://lkml.kernel.org/r/20230914033142.676708-10-bhe@redhat.com Signed-off-by: Baoquan He <bhe@redhat.com> Reviewed-by: Zhen Lei <thunder.leizhen@huawei.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Chen Jiahao <chenjiahao16@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 3936539 commit c37e56c

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

include/linux/crash_core.h

-4
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@ void final_note(Elf_Word *buf);
9696
int __init parse_crashkernel(char *cmdline, unsigned long long system_ram,
9797
unsigned long long *crash_size, unsigned long long *crash_base,
9898
unsigned long long *low_size, bool *high);
99-
int parse_crashkernel_high(char *cmdline, unsigned long long system_ram,
100-
unsigned long long *crash_size, unsigned long long *crash_base);
101-
int parse_crashkernel_low(char *cmdline, unsigned long long system_ram,
102-
unsigned long long *crash_size, unsigned long long *crash_base);
10399

104100
#ifdef CONFIG_ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION
105101
#ifndef DEFAULT_CRASH_KERNEL_LOW_SIZE

kernel/crash_core.c

-18
Original file line numberDiff line numberDiff line change
@@ -350,24 +350,6 @@ int __init parse_crashkernel(char *cmdline,
350350
return ret;
351351
}
352352

353-
int __init parse_crashkernel_high(char *cmdline,
354-
unsigned long long system_ram,
355-
unsigned long long *crash_size,
356-
unsigned long long *crash_base)
357-
{
358-
return __parse_crashkernel(cmdline, system_ram, crash_size, crash_base,
359-
suffix_tbl[SUFFIX_HIGH]);
360-
}
361-
362-
int __init parse_crashkernel_low(char *cmdline,
363-
unsigned long long system_ram,
364-
unsigned long long *crash_size,
365-
unsigned long long *crash_base)
366-
{
367-
return __parse_crashkernel(cmdline, system_ram, crash_size, crash_base,
368-
suffix_tbl[SUFFIX_LOW]);
369-
}
370-
371353
/*
372354
* Add a dummy early_param handler to mark crashkernel= as a known command line
373355
* parameter and suppress incorrect warnings in init/main.c.

0 commit comments

Comments
 (0)