RISC-V: Export sbi_get_mvendorid() and friends
authorAnup Patel <apatel@ventanamicro.com>
Wed, 7 Dec 2022 03:47:38 +0000 (09:17 +0530)
committerAnup Patel <anup@brainfault.org>
Wed, 7 Dec 2022 03:47:38 +0000 (09:17 +0530)
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 <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kernel/sbi.c

index 775d332..5c87db8 100644 (file)
@@ -627,16 +627,19 @@ long sbi_get_mvendorid(void)
 {
        return __sbi_base_ecall(SBI_EXT_BASE_GET_MVENDORID);
 }
+EXPORT_SYMBOL_GPL(sbi_get_mvendorid);
 
 long sbi_get_marchid(void)
 {
        return __sbi_base_ecall(SBI_EXT_BASE_GET_MARCHID);
 }
+EXPORT_SYMBOL_GPL(sbi_get_marchid);
 
 long sbi_get_mimpid(void)
 {
        return __sbi_base_ecall(SBI_EXT_BASE_GET_MIMPID);
 }
+EXPORT_SYMBOL_GPL(sbi_get_mimpid);
 
 static void sbi_send_cpumask_ipi(const struct cpumask *target)
 {