Skip to contentSkip to conversation

kvm: qemu: fix kvm_tpr_opt_setup() args

PATCH Applied Mark McLoughlin 2 participants 2 messages Jan 7, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm: qemu: fix kvm_tpr_opt_setup() args

Fixes:

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

---
 qemu/kvm-tpr-opt.c |    2 +-
 qemu/qemu-kvm.h    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
qemu/kvm-tpr-opt.c +1 -1
index f2a3a1e..b3d26aa 100644
@@ -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);
qemu/qemu-kvm.h +1 -1
index 896df4e..12bd5a0 100644
@@ -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);
Signature · 1 line
1.6.0.5
Applied
#1 lore raw
Quoted 5 lines · Mark McLoughlin

Fixes:

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

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function