Skip to contentSkip to conversation

linux-next: build failure after merge of the kvm tree

DISCUSSION Stephen Rothwell 2 participants 4 messages Feb 5, 2021 – Feb 9, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

Hi all,

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

ERROR: modpost: ".follow_pte" [arch/powerpc/kvm/kvm.ko] undefined!

Caused by commit

bd2fae8da794 ("KVM: do not assume PTE is writable after follow_pfn")

follow_pte is not EXPORTed.

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

Signature · 2 lines
Cheers,
Stephen Rothwell
maintainer
#1 lore raw
Quoted 7 lines · Stephen Rothwell

Hi all,

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

ERROR: modpost: ".follow_pte" [arch/powerpc/kvm/kvm.ko] undefined!

Quoted 8 lines

Caused by commit

bd2fae8da794 ("KVM: do not assume PTE is writable after follow_pfn")

follow_pte is not EXPORTed.

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

Stephen, can you squash in the following for the time being?

mm/memory.c +1 -0
index feff48e1465a..15cbd10afd59 100644
@@ -4775,6 +4775,7 @@ int follow_pte(struct mm_struct *mm, unsigned long address,
 out:
 	return -EINVAL;
 }
+EXPORT_SYMBOL_GPL(follow_pte);
 
 /**
  * follow_pfn - look up PFN at a user virtual address

A similar patch has been posted already, but Jason Gunthorpe asked to add some kerneldoc comments. Therefore it will not be in kvm/next for a few more days.

Paolo

#2 lore raw

Hi Paolo,

Quoted 11 lines · On Fri, 5 Feb 2021 11:08:39 +0100 Paolo Bonzini <[email protected]> wrote:
Quoted 9 lines · Stephen Rothwell

Hi all,

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

ERROR: modpost: ".follow_pte" [arch/powerpc/kvm/kvm.ko] undefined!

Caused by commit

Quoted 8 lines
Quoted 6 lines

bd2fae8da794 ("KVM: do not assume PTE is writable after follow_pfn")

follow_pte is not EXPORTed.

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

Stephen, can you squash in the following for the time being?

Wiil do. I will drop it when it no longer applies.

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw

Hi Paolo,

Quoted 14 lines · On Mon, 8 Feb 2021 06:48:32 +1100 Stephen Rothwell <[email protected]> wrote:
Quoted 12 lines · On Fri, 5 Feb 2021 11:08:39 +0100 Paolo Bonzini <[email protected]> wrote:
Quoted 10 lines · Stephen Rothwell

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

ERROR: modpost: ".follow_pte" [arch/powerpc/kvm/kvm.ko] undefined!

Caused by commit

bd2fae8da794 ("KVM: do not assume PTE is writable after follow_pfn")

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

follow_pte is not EXPORTed.

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

Stephen, can you squash in the following for the time being?

Wiil do. I will drop it when it no longer applies.

I am still applying this patch.

Signature · 2 lines
Cheers,
Stephen Rothwell