Skip to content
Snippets Groups Projects
Commit 9d1c35df authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Peter Maydell
Browse files

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: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
Tested-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent fcb2cd92
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment