[1/2] mm/early_ioremap.c: Always build early_memremap_prot() in x86

Message ID 20221124091246.4957-2-zelin.deng@linux.alibaba.com
State New
Headers
Series Map initrd as encrypted when relocating if SME is enabled |

Commit Message

Zelin Deng Nov. 24, 2022, 9:12 a.m. UTC
  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@linux.alibaba.com>
---
 arch/x86/Kconfig | 1 +
 1 file changed, 1 insertion(+)
  

Patch

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