From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLVWn-0008Uz-87 for qemu-devel@nongnu.org; Thu, 06 Mar 2014 05:27:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLVWe-0001wZ-Re for qemu-devel@nongnu.org; Thu, 06 Mar 2014 05:27:49 -0500 Received: from mail-pb0-x22d.google.com ([2607:f8b0:400e:c01::22d]:53185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLVWe-0001wP-Kw for qemu-devel@nongnu.org; Thu, 06 Mar 2014 05:27:40 -0500 Received: by mail-pb0-f45.google.com with SMTP id uo5so2419998pbc.18 for ; Thu, 06 Mar 2014 02:27:39 -0800 (PST) From: Xuebing Wang Date: Thu, 6 Mar 2014 18:27:12 +0800 Message-Id: <1394101634-21509-6-git-send-email-xbing6@gmail.com> In-Reply-To: <1394101634-21509-1-git-send-email-xbing6@gmail.com> References: <1394101634-21509-1-git-send-email-xbing6@gmail.com> Subject: [Qemu-devel] [PATCH 5/7] kvm-ppc: fix build for ppc64-softmmu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , xbing6@gmail.com, Gleb Natapov The build issue was caused by the patch of removing "#if defined CONFIG_KVM || !defined NEED_CPU_H" Signed-off-by: Xuebing Wang --- target-ppc/kvm_ppc.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/target-ppc/kvm_ppc.h b/target-ppc/kvm_ppc.h index 5f78e4b..c532d2a 100644 --- a/target-ppc/kvm_ppc.h +++ b/target-ppc/kvm_ppc.h @@ -11,7 +11,19 @@ #define TYPE_HOST_POWERPC_CPU "host-" TYPE_POWERPC_CPU +/* Adding "config-target.h" is to ensure this header file is correct by itself. + * + * Only source files in *-softmmu/ or *-linux-user/ folder can + * include "config-target.h". If this header is incorrectly included, + * compiler errors out. + */ +#include "config-target.h" /* for CONFIG_KVM, CONFIG_USER_ONLY */ + +#ifdef CONFIG_KVM void kvmppc_init(void); +#else +static inline void kvmppc_init(void) {} +#endif #ifdef CONFIG_KVM -- 1.7.9.5