From: Paolo Bonzini Date: Fri, 10 Oct 2014 10:23:35 +0000 (+0200) Subject: kvm fix compilation with GCC 4.3.4 X-Git-Tag: qemu-xen-4.6.0-rc1~136 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9d1c35dfc9940e4afa604a25f62b9dc197c513b6;p=qemu-upstream-4.6-testing.git kvm fix compilation with GCC 4.3.4 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 Signed-off-by: Peter Maydell --- diff --git a/kvm-all.c b/kvm-all.c index e98a7c74a..44a5e724e 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")