Skip to contentSkip to conversation

KVM: Fix ERROR: modpost: .kvm_vcpu_can_poll undefined!

PATCH In review Wanpeng Li 2 participants 2 messages May 25, 2021 KVM

lore
Share & tools
lore

Wanpeng Li

author
#0 lore raw

PATCH 1/1 KVM: Fix ERROR: modpost: .kvm_vcpu_can_poll undefined!

From: Wanpeng Li <[email protected]>

Export kvm_vcpu_can_poll to fix ERROR: modpost: .kvm_vcpu_can_poll undefined!

---
 virt/kvm/kvm_main.c | 1 +
 1 file changed, 1 insertion(+)
virt/kvm/kvm_main.c +1 -0
index 62522c1..8eaec42 100644
@@ -2949,6 +2949,7 @@ bool kvm_vcpu_can_poll(ktime_t cur, ktime_t stop)
 {
 	return single_task_running() && !need_resched() && ktime_before(cur, stop);
 }
+EXPORT_SYMBOL_GPL(kvm_vcpu_can_poll);
 
 /*
  * The vCPU has executed a HLT instruction with in-kernel mode enabled.
Signature · 1 line
2.7.4
#1 lore raw
Quoted 4 lines · Wanpeng Li

From: Wanpeng Li <[email protected]>

Export kvm_vcpu_can_poll to fix ERROR: modpost: .kvm_vcpu_can_poll undefined!

Fixes 0fee89fbc44b ("KVM: PPC: exit halt polling on need_resched()")
Quoted 17 lines
---
 virt/kvm/kvm_main.c | 1 +
 1 file changed, 1 insertion(+)
virt/kvm/kvm_main.c +1 -0
index 62522c1..8eaec42 100644
@@ -2949,6 +2949,7 @@ bool kvm_vcpu_can_poll(ktime_t cur, ktime_t stop)
 {
 	return single_task_running() && !need_resched() && ktime_before(cur, stop);
 }
+EXPORT_SYMBOL_GPL(kvm_vcpu_can_poll);
 
 /*
  * The vCPU has executed a HLT instruction with in-kernel mode enabled.
Signature · 1 line
Vitaly