From: Mark McLoughlin <mar...@redhat.com>

Fixes:

  qemu-kvm.h:110: warning: function declaration isn’t a prototype

Signed-off-by: Mark McLoughlin <mar...@redhat.com>
Signed-off-by: Avi Kivity <a...@redhat.com>

diff --git a/qemu/kvm-tpr-opt.c b/qemu/kvm-tpr-opt.c
index f2a3a1e..b3d26aa 100644
--- a/qemu/kvm-tpr-opt.c
+++ b/qemu/kvm-tpr-opt.c
@@ -370,7 +370,7 @@ static void vtpr_ioport_write(void *opaque, uint32_t addr, 
uint32_t val)
     enable_vapic(env);
 }
 
-void kvm_tpr_opt_setup(CPUState *env)
+void kvm_tpr_opt_setup(void)
 {
     register_savevm("kvm-tpr-opt", 0, 1, tpr_save, tpr_load, NULL);
     register_ioport_write(0x7e, 1, 1, vtpr_ioport_write, NULL);
diff --git a/qemu/qemu-kvm.h b/qemu/qemu-kvm.h
index 896df4e..12bd5a0 100644
--- a/qemu/qemu-kvm.h
+++ b/qemu/qemu-kvm.h
@@ -107,7 +107,7 @@ void qemu_kvm_aio_wait_end(void);
 
 void qemu_kvm_notify_work(void);
 
-void kvm_tpr_opt_setup();
+void kvm_tpr_opt_setup(void);
 void kvm_tpr_access_report(CPUState *env, uint64_t rip, int is_write);
 int handle_tpr_access(void *opaque, int vcpu,
                             uint64_t rip, int is_write);
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to