RISC-V: Export kernel symbols for kvm
authorAtish Patra <atish.patra@wdc.com>
Wed, 4 Sep 2019 16:14:06 +0000 (16:14 +0000)
committerPaul Walmsley <paul.walmsley@sifive.com>
Fri, 20 Sep 2019 15:36:39 +0000 (08:36 -0700)
Export a few symbols used by kvm module. Without this, kvm cannot
be compiled as a module.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Alexander Graf <graf@amazon.com>
[paul.walmsley@sifive.com: updated to apply; clarified short patch
 description]
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
arch/riscv/kernel/smp.c
arch/riscv/kernel/time.c

index 3836760..b18cd6c 100644 (file)
@@ -206,3 +206,4 @@ void smp_send_reschedule(int cpu)
 {
        send_ipi_single(cpu, IPI_RESCHEDULE);
 }
+EXPORT_SYMBOL_GPL(smp_send_reschedule);
index 541a2b8..9dd1f2e 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm/sbi.h>
 
 unsigned long riscv_timebase;
+EXPORT_SYMBOL_GPL(riscv_timebase);
 
 void __init time_init(void)
 {