mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dmitrii Bundin <dmitrii.bundin.a@gmail.com>
To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de,
	dave.hansen@linux.intel.com
Cc: x86@kernel.org, hpa@zytor.com, peterz@infradead.org,
	linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
	Dmitrii Bundin <dmitrii.bundin.a@gmail.com>
Subject: [PATCH] x86/mm: dynamic memory layout declarations
Date: Fri, 26 Aug 2022 04:24:45 +0300	[thread overview]
Message-ID: <20220826012445.32628-1-dmitrii.bundin.a@gmail.com> (raw)

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


                 reply	other threads:[~2022-08-26  1:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220826012445.32628-1-dmitrii.bundin.a@gmail.com \
    --to=dmitrii.bundin.a@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®