2021-05-24 23:34:18

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: build failure after merge of the kvm-fixes tree

Hi all,

After merging the kvm-fixes tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:

ERROR: modpost: ".kvm_vcpu_can_poll" [arch/powerpc/kvm/kvm-hv.ko] undefined!

Caused by commit

0fee89fbc44b ("KVM: PPC: exit halt polling on need_resched()")

I have used the kvm-fixes tree from next-20210524 for today.

--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (499.00 B)
OpenPGP digital signature

2021-05-25 00:03:13

by Wanpeng Li

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the kvm-fixes tree

On Tue, 25 May 2021 at 07:33, Stephen Rothwell <[email protected]> wrote:
>
> Hi all,
>
> After merging the kvm-fixes tree, today's linux-next build (powerpc
> ppc64_defconfig) failed like this:
>
> ERROR: modpost: ".kvm_vcpu_can_poll" [arch/powerpc/kvm/kvm-hv.ko] undefined!
>
> Caused by commit
>
> 0fee89fbc44b ("KVM: PPC: exit halt polling on need_resched()")

This is my fault.

From b2a6d98b48fc6b22a0b47f57a98dc3203c678195 Mon Sep 17 00:00:00 2001
From: Wanpeng Li <[email protected]>
Date: Tue, 25 May 2021 07:50:08 +0800
Subject: [PATCH] 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!

Signed-off-by: Wanpeng Li <[email protected]>
---
virt/kvm/kvm_main.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 62522c1..8eaec42 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -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.
--
2.7.4