lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220826012445.32628-1-dmitrii.bundin.a@gmail.com>
Date:   Fri, 26 Aug 2022 04:24:45 +0300
From:   Dmitrii Bundin <dmitrii.bundin.a@...il.com>
To:     tglx@...utronix.de, mingo@...hat.com, bp@...en8.de,
        dave.hansen@...ux.intel.com
Cc:     x86@...nel.org, hpa@...or.com, peterz@...radead.org,
        linux-kernel@...r.kernel.org, akpm@...ux-foundation.org,
        Dmitrii Bundin <dmitrii.bundin.a@...il.com>
Subject: [PATCH] x86/mm: dynamic memory layout declarations

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@...il.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ