From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755590AbbE2HyW (ORCPT ); Fri, 29 May 2015 03:54:22 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:37678 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751933AbbE2HyQ (ORCPT ); Fri, 29 May 2015 03:54:16 -0400 Date: Fri, 29 May 2015 09:54:08 +0200 From: Ingo Molnar To: Stephen Rothwell Cc: Marcelo Tosatti , Gleb Natapov , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Peter Zijlstra Subject: Re: linux-next: build failure after merge of the kvm tree Message-ID: <20150529075408.GA26168@gmail.com> References: <20150529173648.61bf6592@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150529173648.61bf6592@canb.auug.org.au> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Stephen Rothwell wrote: > 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 > Date: Fri, 29 May 2015 17:24:42 +1000 > Subject: [PATCH] kvm: bad merge fix patch for arch/x86/kvm/cpuid.c > > Signed-off-by: Stephen Rothwell > --- > arch/x86/kvm/cpuid.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c > index e243f2ed54c0..8285bc73a5a2 100644 > --- a/arch/x86/kvm/cpuid.c > +++ b/arch/x86/kvm/cpuid.c > @@ -16,6 +16,8 @@ > #include > #include > #include > +#include /* For use_eager_fpu. Ugh! */ > +#include /* For use_eager_fpu. Ugh! */ The comments are incorrect, otherwise the resolution is OK. Thanks, Ingo