aboutsummaryrefslogtreecommitdiffstats
path: root/arch/riscv
diff options
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>2025-02-17 18:38:20 +0200
committerIngo Molnar <mingo@kernel.org>2025-02-21 15:05:38 +0100
commita9ebcb88136ca80cb53de27ca5ae77de18bbe368 (patch)
treebbb27ea8d296052a26345de44cad89c06b02ecee /arch/riscv
parentaffe678f355738db56361d124757c38c09401341 (diff)
downloadath-a9ebcb88136ca80cb53de27ca5ae77de18bbe368.tar.gz
mm/memremap: Pass down MEMREMAP_* flags to arch_memremap_wb()
x86 version of arch_memremap_wb() needs the flags to decide if the mapping has to be encrypted or decrypted. Pass down the flag to arch_memremap_wb(). All current implementations ignore the argument. Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: linux-mm@kvack.org Link: https://lore.kernel.org/r/20250217163822.343400-2-kirill.shutemov@linux.intel.com
Diffstat (limited to 'arch/riscv')
-rw-r--r--arch/riscv/include/asm/io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/include/asm/io.h b/arch/riscv/include/asm/io.h
index 1c5c641075d2f..0257f4aa7ff45 100644
--- a/arch/riscv/include/asm/io.h
+++ b/arch/riscv/include/asm/io.h
@@ -136,7 +136,7 @@ __io_writes_outs(outs, u64, q, __io_pbr(), __io_paw())
#include <asm-generic/io.h>
#ifdef CONFIG_MMU
-#define arch_memremap_wb(addr, size) \
+#define arch_memremap_wb(addr, size, flags) \
((__force void *)ioremap_prot((addr), (size), _PAGE_KERNEL))
#endif