Re: [PATCH 2/2] riscv, kexec: fix dependency of two items

From: Randy Dunlap
Date: Mon Dec 04 2023 - 14:14:44 EST




On 12/3/23 18:23, Baoquan He wrote:
> Drop the dependency on MMU from ARCH_SUPPORTS_KEXEC and
> ARCH_SUPPORTS_KEXEC_FILE because CONFIG_MMU could be disabled while
> people may still want to have KEXEC/KEXEC_FILE functionality.
>
> Signed-off-by: Baoquan He <bhe@xxxxxxxxxx>

Tested-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> # build-tested

Thanks.

> ---
> arch/riscv/Kconfig | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> index 95a2a06acc6a..24c1799e2ec4 100644
> --- a/arch/riscv/Kconfig
> +++ b/arch/riscv/Kconfig
> @@ -685,7 +685,7 @@ config RISCV_BOOT_SPINWAIT
> If unsure what to do here, say N.
>
> config ARCH_SUPPORTS_KEXEC
> - def_bool MMU
> + def_bool y
>
> config ARCH_SELECTS_KEXEC
> def_bool y
> @@ -693,7 +693,7 @@ config ARCH_SELECTS_KEXEC
> select HOTPLUG_CPU if SMP
>
> config ARCH_SUPPORTS_KEXEC_FILE
> - def_bool 64BIT && MMU
> + def_bool 64BIT
>
> config ARCH_SELECTS_KEXEC_FILE
> def_bool y

--
~Randy