[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZOxsGIeYYvypf9op@MiWiFi-R3L-srv>
Date: Mon, 28 Aug 2023 17:42:48 +0800
From: Baoquan He <bhe@...hat.com>
To: Samuel Holland <samuel.holland@...ive.com>
Cc: kexec@...ts.infradead.org, linux-arm-kernel@...ts.infradead.org,
x86@...nel.org, linux-riscv@...ts.infradead.org,
akpm@...ux-foundation.org, catalin.marinas@....com,
thunder.leizhen@...wei.com, dyoung@...hat.com, prudo@...hat.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 8/8] crash_core.c: remove unneeded functions
On 08/28/23 at 12:26am, Samuel Holland wrote:
> Hi Baoquan,
>
> On 2023-08-27 5:11 AM, Baoquan He wrote:
> > So far, nobody calls functions parse_crashkernel_high() and
> > parse_crashkernel_high(), remove both of them.
>
> minor typo: should be parse_crashkernel_low().
Good catch, will update. Thanks.
>
> > Signed-off-by: Baoquan He <bhe@...hat.com>
> > ---
> > include/linux/crash_core.h | 4 ----
> > kernel/crash_core.c | 18 ------------------
> > 2 files changed, 22 deletions(-)
> >
> > diff --git a/include/linux/crash_core.h b/include/linux/crash_core.h
> > index 2f732493e922..0c512a80a768 100644
> > --- a/include/linux/crash_core.h
> > +++ b/include/linux/crash_core.h
> > @@ -80,10 +80,6 @@ void final_note(Elf_Word *buf);
> > int __init parse_crashkernel(char *cmdline, unsigned long long system_ram,
> > unsigned long long *crash_size, unsigned long long *crash_base,
> > unsigned long long *low_size, bool *high);
> > -int parse_crashkernel_high(char *cmdline, unsigned long long system_ram,
> > - unsigned long long *crash_size, unsigned long long *crash_base);
> > -int parse_crashkernel_low(char *cmdline, unsigned long long system_ram,
> > - unsigned long long *crash_size, unsigned long long *crash_base);
> >
> > #ifdef CONFIG_ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION
> > #ifndef DEFAULT_CRASH_KERNEL_LOW_SIZE
> > diff --git a/kernel/crash_core.c b/kernel/crash_core.c
> > index 6bc00cc390b5..61a8ea3b23a2 100644
> > --- a/kernel/crash_core.c
> > +++ b/kernel/crash_core.c
> > @@ -323,24 +323,6 @@ int __init parse_crashkernel(char *cmdline,
> > return 0;
> > }
> >
> > -int __init parse_crashkernel_high(char *cmdline,
> > - unsigned long long system_ram,
> > - unsigned long long *crash_size,
> > - unsigned long long *crash_base)
> > -{
> > - return __parse_crashkernel(cmdline, system_ram, crash_size, crash_base,
> > - suffix_tbl[SUFFIX_HIGH]);
> > -}
> > -
> > -int __init parse_crashkernel_low(char *cmdline,
> > - unsigned long long system_ram,
> > - unsigned long long *crash_size,
> > - unsigned long long *crash_base)
> > -{
> > - return __parse_crashkernel(cmdline, system_ram, crash_size, crash_base,
> > - suffix_tbl[SUFFIX_LOW]);
> > -}
> > -
> > /*
> > * Add a dummy early_param handler to mark crashkernel= as a known command line
> > * parameter and suppress incorrect warnings in init/main.c.
>
Powered by blists - more mailing lists