]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/i386/kvm/clock.c
Move QOM typedefs and add missing includes
[mirror_qemu.git] / hw / i386 / kvm / clock.c
index 64283358f91d08f0bffc48386c299209428e8cca..94ece445af6610b5f3ab7b9bc27e8888a7ff26e2 100644 (file)
 
 #include <linux/kvm.h>
 #include "standard-headers/asm-x86/kvm_para.h"
+#include "qom/object.h"
 
 #define TYPE_KVM_CLOCK "kvmclock"
+typedef struct KVMClockState KVMClockState;
 #define KVM_CLOCK(obj) OBJECT_CHECK(KVMClockState, (obj), TYPE_KVM_CLOCK)
 
-typedef struct KVMClockState {
+struct KVMClockState {
     /*< private >*/
     SysBusDevice busdev;
     /*< public >*/
@@ -50,7 +52,7 @@ typedef struct KVMClockState {
     /* whether the 'clock' value was obtained in a host with
      * reliable KVM_GET_CLOCK */
     bool clock_is_reliable;
-} KVMClockState;
+};
 
 struct pvclock_vcpu_time_info {
     uint32_t   version;