Skip to content

Commit a1a44e2

Browse files
committed
RISC-V: Export sbi_get_mvendorid() and friends
The sbi_get_mvendorid(), sbi_get_marchid(), and sbi_get_mimpid() can be used by KVM module so let us export these functions. Signed-off-by: Anup Patel <[email protected]> Reviewed-by: Atish Patra <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Acked-by: Palmer Dabbelt <[email protected]> Signed-off-by: Anup Patel <[email protected]>
1 parent 23fe562 commit a1a44e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/riscv/kernel/sbi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,16 +627,19 @@ long sbi_get_mvendorid(void)
627627
{
628628
return __sbi_base_ecall(SBI_EXT_BASE_GET_MVENDORID);
629629
}
630+
EXPORT_SYMBOL_GPL(sbi_get_mvendorid);
630631

631632
long sbi_get_marchid(void)
632633
{
633634
return __sbi_base_ecall(SBI_EXT_BASE_GET_MARCHID);
634635
}
636+
EXPORT_SYMBOL_GPL(sbi_get_marchid);
635637

636638
long sbi_get_mimpid(void)
637639
{
638640
return __sbi_base_ecall(SBI_EXT_BASE_GET_MIMPID);
639641
}
642+
EXPORT_SYMBOL_GPL(sbi_get_mimpid);
640643

641644
static void sbi_send_cpumask_ipi(const struct cpumask *target)
642645
{

0 commit comments

Comments
 (0)