diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-10-10 12:23:35 +0200 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-10-10 14:07:08 +0100 |
commit | 9d1c35dfc9940e4afa604a25f62b9dc197c513b6 (patch) | |
tree | 8ae571615a7c9f9f66c46e43d957dfdd3773102e /kvm-all.c | |
parent | fcb2cd928f5519b8241e22411a696be1a7272b1c (diff) | |
download | qemu-9d1c35dfc9940e4afa604a25f62b9dc197c513b6.tar.gz qemu-9d1c35dfc9940e4afa604a25f62b9dc197c513b6.tar.bz2 qemu-9d1c35dfc9940e4afa604a25f62b9dc197c513b6.zip |
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 <cornelia.huck@de.ibm.com>
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'kvm-all.c')
-rw-r--r-- | kvm-all.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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") |