Thread (25 messages) 25 messages, 6 authors, 2021-12-13
STALE1632d REVIEWED: 1 (0M)
Revisions (10)
  1. v15 [diff vs current]
  2. v16 current
  3. v17 [diff vs current]
  4. v18 [diff vs current]
  5. v19 [diff vs current]
  6. v20 [diff vs current]
  7. v21 [diff vs current]
  8. v22 [diff vs current]
  9. v23 [diff vs current]
  10. v24 [diff vs current]

[PATCH v16 01/11] x86: kdump: replace the hard-coded alignment with macro CRASH_ALIGN

From: Zhen Lei <hidden>
Date: 2021-11-23 12:49:33
Also in: kexec, linux-arm-kernel, linux-doc, lkml
Subsystem: the rest, x86 architecture (32-bit and 64-bit) · Maintainers: Linus Torvalds, Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen

From: Chen Zhou <redacted>

Move CRASH_ALIGN to header asm/kexec.h for later use.

Suggested-by: Dave Young <redacted>
Suggested-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Chen Zhou <redacted>
Tested-by: John Donnelly <redacted>
---
 arch/x86/include/asm/kexec.h | 3 +++
 arch/x86/kernel/setup.c      | 3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/include/asm/kexec.h b/arch/x86/include/asm/kexec.h
index 11b7c06e2828c30..3a22e65262aa70b 100644
--- a/arch/x86/include/asm/kexec.h
+++ b/arch/x86/include/asm/kexec.h
@@ -18,6 +18,9 @@
 
 # define KEXEC_CONTROL_CODE_MAX_SIZE	2048
 
+/* 16M alignment for crash kernel regions */
+#define CRASH_ALIGN		SZ_16M
+
 #ifndef __ASSEMBLY__
 
 #include <linux/string.h>
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index c410be738ae78e0..b7286d4c389dd33 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -392,9 +392,6 @@ static void __init memblock_x86_reserve_range_setup_data(void)
 
 #ifdef CONFIG_KEXEC_CORE
 
-/* 16M alignment for crash kernel regions */
-#define CRASH_ALIGN		SZ_16M
-
 /*
  * Keep the crash kernel below this limit.
  *
-- 
2.25.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help