RISC-V: Export SBI error to linux error mapping function
authorAtish Patra <atish.patra@wdc.com>
Wed, 18 Mar 2020 01:11:41 +0000 (18:11 -0700)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Tue, 31 Mar 2020 18:26:00 +0000 (11:26 -0700)
commitf90b43ce176c129a84237c9d57fae51aeff3e6ec
tree04914f72ae2df398a4ad3ef70a3aa389943d2003
parent2875fe0561569f82d0e63658ccf0d11ce7da8922
RISC-V: Export SBI error to linux error mapping function

All SBI related extensions will not be implemented in sbi.c to avoid
bloating. Thus, sbi_err_map_linux_errno() will be used in other files
implementing that specific extension.

Export the function so that it can be used later.

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