Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Baoquan He and committed by
Andrew Morton
c37e56ca 39365395

-22
-4
include/linux/crash_core.h
··· 96 96 int __init parse_crashkernel(char *cmdline, unsigned long long system_ram, 97 97 unsigned long long *crash_size, unsigned long long *crash_base, 98 98 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); 103 99 104 100 #ifdef CONFIG_ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION 105 101 #ifndef DEFAULT_CRASH_KERNEL_LOW_SIZE
-18
kernel/crash_core.c
··· 350 350 return ret; 351 351 } 352 352 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 - 371 353 /* 372 354 * Add a dummy early_param handler to mark crashkernel= as a known command line 373 355 * parameter and suppress incorrect warnings in init/main.c.