RISC-V: Add a non-void return for sbi v02 functions
authorAtish Patra <atish.patra@wdc.com>
Thu, 4 Feb 2021 05:26:43 +0000 (21:26 -0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Tue, 23 Feb 2021 01:51:03 +0000 (17:51 -0800)
commit4bb875632ad0e8b71fa0f0be292793c061a9f43c
tree6aa8d2240ba943af519da20b59d2cebfb42f4973
parent65d4b9c5301749d18b5ec1323fdefecefab72687
RISC-V: Add a non-void return for sbi v02 functions

SBI v0.2 functions can return an error code from SBI implementation.
We are already processing the SBI error code and coverts it to the Linux
error code.

Propagate to the error code to the caller as well. As of now, kvm is the
only user of these error codes.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/sbi.h
arch/riscv/kernel/sbi.c