Skip to contentSkip to conversation

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

PATCH Stephen Rothwell 3 participants 3 messages May 29, 2015

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

Hi all,

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

arch/x86/kvm/cpuid.c: In function 'kvm_update_cpuid':
arch/x86/kvm/cpuid.c:98:2: error: implicit declaration of function 'use_eager_fpu' [-Werror=implicit-function-declaration]
vcpu->arch.eager_fpu = use_eager_fpu() || guest_cpuid_has_mpx(vcpu);
^

Caused by a bad automatic merge resolution which didn't add the includes of one of its parents.

I added the following merge fix patch:

From: Stephen Rothwell <[email protected]>
Date: Fri, 29 May 2015 17:24:42 +1000
Subject: [PATCH] kvm: bad merge fix patch for arch/x86/kvm/cpuid.c

---
 arch/x86/kvm/cpuid.c | 2 ++
 1 file changed, 2 insertions(+)
arch/x86/kvm/cpuid.c +2 -0
index e243f2ed54c0..8285bc73a5a2 100644
@@ -16,6 +16,8 @@
 #include <linux/module.h>
 #include <linux/vmalloc.h>
 #include <linux/uaccess.h>
+#include <asm/fpu/api.h> /* For use_eager_fpu.  Ugh! */
+#include <asm/fpu/internal.h> /* For use_eager_fpu.  Ugh! */
 #include <asm/user.h>
 #include <asm/fpu/xstate.h>
 #include "cpuid.h"
Signature · 5 lines
2.1.4

-- 
Cheers,
Stephen Rothwell                    [email protected]
#1 lore raw
Quoted 29 lines · Stephen Rothwell

Hi all,

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

arch/x86/kvm/cpuid.c: In function 'kvm_update_cpuid':
arch/x86/kvm/cpuid.c:98:2: error: implicit declaration of function 'use_eager_fpu' [-Werror=implicit-function-declaration]
vcpu->arch.eager_fpu = use_eager_fpu() || guest_cpuid_has_mpx(vcpu);
^

Caused by a bad automatic merge resolution which didn't add the includes of one of its parents.

I added the following merge fix patch:

From: Stephen Rothwell <[email protected]>
Date: Fri, 29 May 2015 17:24:42 +1000
Subject: [PATCH] kvm: bad merge fix patch for arch/x86/kvm/cpuid.c

---
 arch/x86/kvm/cpuid.c | 2 ++
 1 file changed, 2 insertions(+)
arch/x86/kvm/cpuid.c +0 -0
index e243f2ed54c0..8285bc73a5a2 100644

arch/x86/kvm/cpuid.c line 20

Quoted 5 lines
arch/x86/kvm/cpuid.c +2 -0
@@ -16,6 +16,8 @@
 #include <linux/module.h>
 #include <linux/vmalloc.h>
 #include <linux/uaccess.h>
+#include <asm/fpu/api.h> /* For use_eager_fpu.  Ugh! */
+#include <asm/fpu/internal.h> /* For use_eager_fpu.  Ugh! */

The comments are incorrect, otherwise the resolution is OK.

Thanks,

Ingo

maintainer
#2 lore raw
In reply to Stephen Rothwell

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Quoted 5 lines · Stephen Rothwell

Hi all,

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

Quoted 8 lines

arch/x86/kvm/cpuid.c: In function 'kvm_update_cpuid':
arch/x86/kvm/cpuid.c:98:2: error: implicit declaration of function 'use_eager_fpu' [-Werror=implicit-function-declaration] vcpu->arch.eager_fpu = use_eager_fpu() || guest_cpuid_has_mpx(vcpu); ^

Caused by a bad automatic merge resolution which didn't add the includes of one of its parents.

Thanks; I'll wait for Ingo's 4.1 FPU changes to land, and then note the semantic conflict in my own pull request.

Also can you please add me and [email protected] to the list of addresses that are notified about the KVM tree in linux-next?

Regards,

Paolo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJVaFbHAAoJEL/70l94x66DaAEIAINFmHxlKGpajfWibnDqc4yW AEuqFlN02JYNTUL+ZPXEpnjYT2eHnZUm+Q3BcwewnsoHcJL+KKKnHkNLlJQCpBc5 iBPPZQvMsbExEF7NsHDioPiZj1BK9IcQQOejRatEystOO9r9Mmw42L09t2M/+lUo iIoDjpgUp/BegMqC4c3xG682k5v+jH+UIqsBUy7OWvfbTF7Eej98wUXpuuw/rfLU 1JLM9gUo7CEUWYhjH9LfymQ84pFM0iQ7sEm1VUOmxwaRJ2EqF6AueyKB2uqqgGY/ a5uYx88AVMT2wxBpMhsnM9OMkGqZ8uykWAiWhgIhX6JR6Ygk+OgC+d2sKsREQgc= =PRiY
-----END PGP SIGNATURE-----