Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934125Ab3DQXMK (ORCPT ); Wed, 17 Apr 2013 19:12:10 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:41134 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751919Ab3DQXMI (ORCPT ); Wed, 17 Apr 2013 19:12:08 -0400 Date: Wed, 17 Apr 2013 16:12:05 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Marcelo Tosatti , Gleb Natapov cc: Randy Dunlap , Stephen Rothwell , x86@kernel.org, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, KVM Subject: [patch] x86, kvm: fix build failure with CONFIG_SMP disabled In-Reply-To: Message-ID: References: <20130417170450.5dd6e5f450de4d5bf197d997@canb.auug.org.au> <516EE5AB.4080201@infradead.org> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 906 Lines: 29 The build fails when CONFIG_SMP is disabled: arch/x86/kvm/vmx.c: In function 'vmx_deliver_posted_interrupt': arch/x86/kvm/vmx.c:3950:3: error: 'apic' undeclared (first use in this function) Fix it by including the necessary header. Reported-by: Randy Dunlap Signed-off-by: David Rientjes --- arch/x86/kvm/vmx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -34,6 +34,7 @@ #include "kvm_cache_regs.h" #include "x86.h" +#include #include #include #include -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/