Re: [PATCH linux-next v3 02/14] crash: split vmcoreinfo exporting code out from crash_core.c

From: Baoquan He
Date: Mon Mar 25 2024 - 10:08:54 EST


On 03/25/24 at 09:24am, Geert Uytterhoeven wrote:
> Hi Baoquan,
>
> On Wed, Jan 24, 2024 at 6:13 AM Baoquan He <bhe@xxxxxxxxxx> wrote:
> > Now move the relevant codes into separate files:
> > kernel/crash_reserve.c, include/linux/crash_reserve.h.
> >
> > And add config item CRASH_RESERVE to control its enabling.
> >
> > And also update the old ifdeffery of CONFIG_CRASH_CORE, including of
> > <linux/crash_core.h> and config item dependency on CRASH_CORE
> > accordingly.
> >
> > And also do renaming as follows:
> > - arch/xxx/kernel/{crash_core.c => vmcore_info.c}
> > because they are only related to vmcoreinfo exporting on x86, arm64,
> > riscv.
> >
> > And also Remove config item CRASH_CORE, and rely on CONFIG_KEXEC_CORE to
> > decide if build in crash_core.c.
> >
> > Signed-off-by: Baoquan He <bhe@xxxxxxxxxx>
> > ---
> > v2->v3:
> > - There's conflict when rebasing to linux-next in kernel/crash_core.c
> > because of below commits from Uladzislau:
> > commit 699d9351822e ("mm: vmalloc: Fix a warning in the crash_save_vmcoreinfo_init()")
> > commit 5f4c0c1e2a51 (:mm/vmalloc: remove vmap_area_list")
>
> Thanks for your patch, which is now commit 443cbaf9e2fdbef7
> ("crash: split vmcoreinfo exporting code out from
> crash_core.c") in v6.9-rc1.
>
> After this, there are still two references left to CRASH_CORE:
>
> 1. Documentation/admin-guide/kdump/kdump.rst:
>
> Subsequently, CRASH_CORE is selected by KEXEC_CORE::
>
> 2. arch/loongarch/Kconfig
>
> config ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION
> def_bool CRASH_CORE

Sure, will post patch to clean them up. Thanks a lot.