diff options
author | Baoquan He <bhe@redhat.com> | 2023-09-14 11:31:35 +0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-10-04 10:41:58 -0700 |
commit | a9e1a3d84e4a0ea560ed4d84c28d06dbfdffed22 (patch) | |
tree | 1e0f9691fa3b8bc6e1394ef195e0f271d80d222f /kernel/crash_core.c | |
parent | crash_core.c: remove unnecessary parameter of function (diff) | |
download | wireguard-linux-a9e1a3d84e4a0ea560ed4d84c28d06dbfdffed22.tar.xz wireguard-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 'kernel/crash_core.c')
-rw-r--r-- | kernel/crash_core.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/kernel/crash_core.c b/kernel/crash_core.c index 507113932aa9..33ced5b5ed4e 100644 --- a/kernel/crash_core.c +++ b/kernel/crash_core.c @@ -287,10 +287,19 @@ static int __init __parse_crashkernel(char *cmdline, int __init parse_crashkernel(char *cmdline, unsigned long long system_ram, unsigned long long *crash_size, - unsigned long long *crash_base) + unsigned long long *crash_base, + unsigned long long *low_size, + bool *high) { - return __parse_crashkernel(cmdline, system_ram, crash_size, crash_base, - NULL); + int ret; + + /* crashkernel=X[@offset] */ + ret = __parse_crashkernel(cmdline, system_ram, crash_size, + crash_base, NULL); + if (!high) + return ret; + + return 0; } int __init parse_crashkernel_high(char *cmdline, |