Skip to content

Commit

Permalink
kvm fix compilation with GCC 4.3.4
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bonzini authored and pm215 committed Oct 10, 2014
1 parent fcb2cd9 commit 9d1c35d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kvm-all.c
Expand Up @@ -71,7 +71,7 @@ typedef struct KVMSlot

typedef struct kvm_dirty_log KVMDirtyLog;

typedef struct KVMState
struct KVMState
{
AccelState parent_obj;

Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit 9d1c35d

Please sign in to comment.