RISC-V: KVM: Use correct restricted types
authorAndrew Jones <ajones@ventanamicro.com>
Wed, 31 Jan 2024 12:05:15 +0000 (13:05 +0100)
committerAnup Patel <anup@brainfault.org>
Fri, 9 Feb 2024 06:23:13 +0000 (11:53 +0530)
commitf072b272aa27d57cf7fe6fdedb30fb50f391974e
tree259fd975eae145e06c593b0b51cd403d55f10db6
parent3752219b6007ee0421cc228f442f33b31f85addd
RISC-V: KVM: Use correct restricted types

__le32 and __le64 types should be used with le32_to_cpu() and
le64_to_cpu() and __user is needed for pointers referencing
guest memory, as sparse helpfully points out.

Fixes: e9f12b5fff8a ("RISC-V: KVM: Implement SBI STA extension")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202401020142.lwFEDK5v-lkp@intel.com/
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/vcpu_sbi_sta.c