[PATCH 2/2] arch, kexec: declare kexec and crash capabilities in Kconfig.kexec
Heiko Carstens
hca at linux.ibm.com
Thu Nov 19 00:03:27 PST 2026
On Thu, Nov 19, 2026 at 08:16:58AM +0200, Mike Rapoport (Microsoft) wrote:
> The options that let an architecture opt in to kexec and crash dump
> features, like ARCH_SUPPORTS_KEXEC or ARCH_SUPPORTS_CRASH_DUMP, are
> defined in each architecture's Kconfig as def_bool, and most of them are
> copied over several architectures.
>
> Declare these options once in kernel/Kconfig.kexec next to the options
> that depend on them, similarly to how mm/Kconfig does it, and make the
> architectures select them instead.
>
> Selection conditions are preserved, so there is no functional change.
>
> Acked-by: Baoquan He <baoquan.he at linux.dev>
> Signed-off-by: Mike Rapoport (Microsoft) <rppt at kernel.org>
> ---
> arch/arm/Kconfig | 12 +++---------
> arch/arm64/Kconfig | 36 +++++++++---------------------------
> arch/loongarch/Kconfig | 20 +++++---------------
> arch/m68k/Kconfig | 4 +---
> arch/mips/Kconfig | 12 +++---------
> arch/parisc/Kconfig | 8 ++------
> arch/powerpc/Kconfig | 30 +++++++-----------------------
> arch/riscv/Kconfig | 28 +++++++---------------------
> arch/s390/Kconfig | 28 ++++++----------------------
> arch/sh/Kconfig | 16 ++++------------
> arch/x86/Kconfig | 48 ++++++++++++------------------------------------
> kernel/Kconfig.kexec | 42 ++++++++++++++++++++++++++++++++++++++++++
> 12 files changed, 101 insertions(+), 183 deletions(-)
Acked-by: Heiko Carstens <hca at linux.ibm.com> # s390
More information about the linux-riscv
mailing list