aboutsummaryrefslogtreecommitdiff
path: root/arch/loongarch
diff options
context:
space:
mode:
authorGravatar Baoquan He <bhe@redhat.com> 2023-09-14 11:31:35 +0800
committerGravatar Andrew Morton <akpm@linux-foundation.org> 2023-10-04 10:41:58 -0700
commita9e1a3d84e4a0ea560ed4d84c28d06dbfdffed22 (patch)
tree1e0f9691fa3b8bc6e1394ef195e0f271d80d222f /arch/loongarch
parentcrash_core.c: remove unnecessary parameter of function (diff)
downloadlinux-a9e1a3d84e4a0ea560ed4d84c28d06dbfdffed22.tar.gz
linux-a9e1a3d84e4a0ea560ed4d84c28d06dbfdffed22.tar.bz2
linux-a9e1a3d84e4a0ea560ed4d84c28d06dbfdffed22.zip
crash_core: change the prototype of function parse_crashkernel()
Add two parameters 'low_size' and 'high' to function parse_crashkernel(), later crashkernel=,high|low parsing will be added. Make adjustments in all call sites of parse_crashkernel() in arch. Link: https://lkml.kernel.org/r/20230914033142.676708-3-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>
Diffstat (limited to 'arch/loongarch')
-rw-r--r--arch/loongarch/kernel/setup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/loongarch/kernel/setup.c b/arch/loongarch/kernel/setup.c
index 7783f0a3d742..4de32b07c0dc 100644
--- a/arch/loongarch/kernel/setup.c
+++ b/arch/loongarch/kernel/setup.c
@@ -267,7 +267,9 @@ static void __init arch_parse_crashkernel(void)
unsigned long long crash_base, crash_size;
total_mem = memblock_phys_mem_size();
- ret = parse_crashkernel(boot_command_line, total_mem, &crash_size, &crash_base);
+ ret = parse_crashkernel(boot_command_line, total_mem,
+ &crash_size, &crash_base,
+ NULL, NULL);
if (ret < 0 || crash_size <= 0)
return;