* [PATCH] x86/mm: dynamic memory layout declarations
@ 2022-08-26 1:24 Dmitrii Bundin
0 siblings, 0 replies; only message in thread
From: Dmitrii Bundin @ 2022-08-26 1:24 UTC (permalink / raw)
To: tglx, mingo, bp, dave.hansen
Cc: x86, hpa, peterz, linux-kernel, akpm, Dmitrii Bundin
The declarations page_offset_base, vmalloc_base and vmemmap_base makes
sense only if CONFIG_DYNAMIC_MEMORY_LAYOUT is enabled. Hides the
declarations behind a conditional macro checking the option.
Signed-off-by: Dmitrii Bundin <dmitrii.bundin.a@gmail.com>
---
arch/x86/include/asm/page_64.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/include/asm/page_64.h b/arch/x86/include/asm/page_64.h
index baa70451b8df..2968b3644912 100644
--- a/arch/x86/include/asm/page_64.h
+++ b/arch/x86/include/asm/page_64.h
@@ -12,9 +12,11 @@
extern unsigned long max_pfn;
extern unsigned long phys_base;
+#ifdef CONFIG_DYNAMIC_MEMORY_LAYOUT
extern unsigned long page_offset_base;
extern unsigned long vmalloc_base;
extern unsigned long vmemmap_base;
+#endif /* CONFIG_DYNAMIC_MEMORY_LAYOUT */
static __always_inline unsigned long __phys_addr_nodebug(unsigned long x)
{
--
2.17.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-26 1:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-26 1:24 [PATCH] x86/mm: dynamic memory layout declarations Dmitrii Bundin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®