RISC-V: ACPI: Fix acpi_os_ioremap to return iomem address
authorSunil V L <sunilvl@ventanamicro.com>
Mon, 24 Jul 2023 10:03:46 +0000 (15:33 +0530)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 2 Aug 2023 20:49:43 +0000 (13:49 -0700)
commit568701fee36652a7660ed667a3980c945d8051e0
tree96a4f27650926e09ed2589766bd476de05200a03
parent25696067202f047e22c1562f1f56b0e2eb547d1a
RISC-V: ACPI: Fix acpi_os_ioremap to return iomem address

acpi_os_ioremap() currently is a wrapper to memremap() on
RISC-V. But the callers of acpi_os_ioremap() expect it to
return __iomem address and hence sparse tool reports a new
warning. Fix this issue by type casting to  __iomem type.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202307230357.egcTAefj-lkp@intel.com/
Fixes: a91a9ffbd3a5 ("RISC-V: Add support to build the ACPI core")
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230724100346.1302937-1-sunilvl@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/acpi.h
arch/riscv/kernel/acpi.c