[PATCH v4 01/10] riscv: Define ioremap_cache for RISC-V
Himanshu Chauhan <[email protected]> Wed, 13 May 2026 14:13:16 +0530
| Newsgroups | dev.linux.lists.acpica-devel,org.infradead.lists.linux-riscv,org.kernel.vger.linux-acpi,org.kernel.vger.linux-efi,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
bert and einj drivers use ioremap_cache for mapping entries but ioremap_cache is not defined for RISC-V. Signed-off-by: Himanshu Chauhan <[email protected]> --- arch/riscv/include/asm/io.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/riscv/include/asm/io.h b/arch/riscv/include/asm/io.h index 09bb5f57a9d3..5550b28f38db 100644 --- a/arch/riscv/include/asm/io.h +++ b/arch/riscv/include/asm/io.h @@ -142,6 +142,9 @@ __io_writes_outs(outs, u64, q, __io_pbr(), __io_paw()) #ifdef CONFIG_MMU #define arch_memremap_wb(addr, size, flags) \ ((__force void *)ioremap_prot((addr), (size), __pgprot(_PAGE_KERNEL))) + +#define ioremap_cache(addr, size) \ + ((__force void *)ioremap_prot((addr), (size), PAGE_KERNEL)) #endif #endif /* _ASM_RISCV_IO_H */ -- 2.43.0