x86-setup-use-is_enabledconfig_kexec_core-instead-of-ifdef.patch removed from -mm tree
The patch titled
Subject: x86/setup: use IS_ENABLED(CONFIG_KEXEC_CORE) instead of #ifdef
has been removed from the -mm tree. Its filename was
x86-setup-use-is_enabledconfig_kexec_core-instead-of-ifdef.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Jisheng Zhang <[email protected]>
Subject: x86/setup: use IS_ENABLED(CONFIG_KEXEC_CORE) instead of #ifdef
Replace the conditional compilation using "#ifdef CONFIG_KEXEC_CORE" by a check for "IS_ENABLED(CONFIG_KEXEC_CORE)", to simplify the code and increase compile coverage.
Signed-off-by Jisheng Zhang <[email protected]>
Acked-by Baoquan He <[email protected]>
Cc Albert Ou <[email protected]>
Cc Alexandre Ghiti <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Dave Hansen <[email protected]>
Cc Eric W. Biederman <[email protected]>
Cc H. Peter Anvin <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Paul Walmsley <[email protected]>
Cc Russell King <[email protected]>
Cc Russell King (Oracle) <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Will Deacon <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/x86/kernel/setup.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
arch/x86/kernel/setup.c renamed from arch/x86/kernel/setup.c~x86-setup-use-is_enabledconfig_kexec_core-instead-of-ifdef +3 -7
@@ -411,8 +411,6 @@ static void __init memblock_x86_reserve_* --------- Crashkernel reservation ------------------------------ */ -#ifdef CONFIG_KEXEC_CORE -/* 16M alignment for crash kernel regions */ #define CRASH_ALIGN SZ_16M
@@ -490,6 +488,9 @@ static void __init reserve_crashkernel(vbool high = false;int ret; +if (!IS_ENABLED (CONFIG_KEXEC_CORE )) +return ; + total_mem =memblock_phys_mem_size ();/* crashkernel=XM */
@@ -555,11 +556,6 @@ static void __init reserve_crashkernel(v crashk_res.end = crash_base + crash_size -1 ;insert_resource (&iomem_resource, &crashk_res); } -#else -static void __init reserve_crashkernel (void ) -{ -} -#endif static struct resource standard_io_resources[] = { { .name ="dma1" , .start =0x00 , .end =0x1f ,
_
Patches currently in -mm which might be from [email protected] are