From: Sunil V L Date: Mon, 15 May 2023 05:49:12 +0000 (+0530) Subject: ACPI: OSL: Make should_use_kmap() 0 for RISC-V X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=214c236223b8449177a7e4a4c49dd65892f6cd59;p=linux.git ACPI: OSL: Make should_use_kmap() 0 for RISC-V Without this, if the tables are larger than 4K, acpi_map() will fail. Signed-off-by: Sunil V L Acked-by: Rafael J. Wysocki Link: https://lore.kernel.org/r/20230515054928.2079268-6-sunilvl@ventanamicro.com Signed-off-by: Palmer Dabbelt --- diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 3269a888fb7a9..f725813d0cce6 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -276,7 +276,7 @@ acpi_map_lookup_virt(void __iomem *virt, acpi_size size) return NULL; } -#if defined(CONFIG_IA64) || defined(CONFIG_ARM64) +#if defined(CONFIG_IA64) || defined(CONFIG_ARM64) || defined(CONFIG_RISCV) /* ioremap will take care of cache attributes */ #define should_use_kmap(pfn) 0 #else