diff options
author | Atish Patra <atish.patra@wdc.com> | 2020-03-17 18:11:41 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2020-03-31 11:26:00 -0700 |
commit | f90b43ce176c129a84237c9d57fae51aeff3e6ec (patch) | |
tree | 04914f72ae2df398a4ad3ef70a3aa389943d2003 /arch/riscv/kernel | |
parent | 2875fe0561569f82d0e63658ccf0d11ce7da8922 (diff) | |
download | linux-f90b43ce176c129a84237c9d57fae51aeff3e6ec.tar.gz linux-f90b43ce176c129a84237c9d57fae51aeff3e6ec.tar.bz2 linux-f90b43ce176c129a84237c9d57fae51aeff3e6ec.zip |
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>
Diffstat (limited to 'arch/riscv/kernel')
-rw-r--r-- | arch/riscv/kernel/sbi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/riscv/kernel/sbi.c b/arch/riscv/kernel/sbi.c index 1cc0052e1b63..7c24da59bccf 100644 --- a/arch/riscv/kernel/sbi.c +++ b/arch/riscv/kernel/sbi.c @@ -46,7 +46,7 @@ struct sbiret sbi_ecall(int ext, int fid, unsigned long arg0, } EXPORT_SYMBOL(sbi_ecall); -static int sbi_err_map_linux_errno(int err) +int sbi_err_map_linux_errno(int err) { switch (err) { case SBI_SUCCESS: @@ -63,6 +63,7 @@ static int sbi_err_map_linux_errno(int err) return -ENOTSUPP; }; } +EXPORT_SYMBOL(sbi_err_map_linux_errno); #ifdef CONFIG_RISCV_SBI_V01 /** |