[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221124091246.4957-2-zelin.deng@linux.alibaba.com>
Date: Thu, 24 Nov 2022 17:12:45 +0800
From: Zelin Deng <zelin.deng@...ux.alibaba.com>
To: x86@...nel.org, linux-kernel@...r.kernel.org
Cc: Tom Lendacky <thomas.lendacky@....com>,
Thomas Gleixner <tglx@...utronix.de>,
Borislav Petkov <bp@...en8.de>,
Zelin Deng <zelin.deng@...ux.alibaba.com>
Subject: [PATCH 1/2] mm/early_ioremap.c: Always build early_memremap_prot() in x86
In some scenarios, we'd want to specify protection attributes when we
are doing early memory map. As early_memremap_prot() is also defined in
loongarch it's better to select ARCH_USE_MEMREMAP_PROT on X86 config to
avoid redefined error.
Signed-off-by: Zelin Deng <zelin.deng@...ux.alibaba.com>
---
arch/x86/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 48d98a5fe06b..133d7d660b2e 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -97,6 +97,7 @@ config X86
select ARCH_HAS_SYNC_CORE_BEFORE_USERMODE
select ARCH_HAS_SYSCALL_WRAPPER
select ARCH_HAS_UBSAN_SANITIZE_ALL
+ select ARCH_USE_MEMREMAP_PROT
select ARCH_HAS_DEBUG_WX
select ARCH_HAS_ZONE_DMA_SET if EXPERT
select ARCH_HAVE_NMI_SAFE_CMPXCHG
--
2.27.0
Powered by blists - more mailing lists