From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcXMZ-0004sa-EV for qemu-devel@nongnu.org; Fri, 10 Oct 2014 06:24:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XcXMQ-0003Cc-CE for qemu-devel@nongnu.org; Fri, 10 Oct 2014 06:23:55 -0400 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:36118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcXMQ-0003CM-5E for qemu-devel@nongnu.org; Fri, 10 Oct 2014 06:23:46 -0400 Received: by mail-wi0-f179.google.com with SMTP id d1so1593308wiv.0 for ; Fri, 10 Oct 2014 03:23:44 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 10 Oct 2014 12:23:35 +0200 Message-Id: <1412936615-18397-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH build-fix] kvm fix compilation with GCC 4.3.4 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org As usual, SLES11's GCC complained about double typedefs: /home/cohuck/git/qemu/kvm-all.c:110: error: redefinition of typedef ‘KVMState’ /home/cohuck/git/qemu/include/sysemu/kvm.h:161: error: previous declaration of ‘KVMState’ was here Reported-by: Cornelia Huck Tested-by: Cornelia Huck Signed-off-by: Paolo Bonzini --- kvm-all.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index e98a7c7..44a5e72 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -71,7 +71,7 @@ typedef struct KVMSlot typedef struct kvm_dirty_log KVMDirtyLog; -typedef struct KVMState +struct KVMState { AccelState parent_obj; @@ -107,7 +107,7 @@ typedef struct KVMState QTAILQ_HEAD(msi_hashtab, KVMMSIRoute) msi_hashtab[KVM_MSI_HASHTAB_SIZE]; bool direct_msi; #endif -} KVMState; +}; #define TYPE_KVM_ACCEL ACCEL_CLASS_NAME("kvm") -- 1.8.3.1