[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e3912496-87aa-d579-b3c1-861c13b66bec@ghiti.fr>
Date: Fri, 3 Dec 2021 09:15:41 +0100
From: Alexandre ghiti <alex@...ti.fr>
To: Jisheng Zhang <jszhang@...nel.org>,
Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>
Cc: linux-riscv@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/5] riscv: mm: init: remove unnecessary "#ifdef
CONFIG_CRASH_DUMP"
On 12/3/21 06:03, Jisheng Zhang wrote:
> The is_kdump_kernel() returns false for !CRASH_DUMP case, so we don't
> need the #ifdef CONFIG_CRASH_DUMP for is_kdump_kernel() checking.
>
> Signed-off-by: Jisheng Zhang <jszhang@...nel.org>
> ---
> arch/riscv/mm/init.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c
> index 3c0649dba4ff..745f26a3b02e 100644
> --- a/arch/riscv/mm/init.c
> +++ b/arch/riscv/mm/init.c
> @@ -790,12 +790,10 @@ static void __init reserve_crashkernel(void)
> * since it doesn't make much sense and we have limited memory
> * resources.
> */
> -#ifdef CONFIG_CRASH_DUMP
> if (is_kdump_kernel()) {
> pr_info("crashkernel: ignoring reservation request\n");
> return;
> }
> -#endif
>
> ret = parse_crashkernel(boot_command_line, memblock_phys_mem_size(),
> &crash_size, &crash_base);
Reviewed-by: Alexandre Ghiti <alex@...ti.fr>
Thanks,
Alex
Powered by blists - more mailing lists