Skip to contentSkip to conversation

ppc host, target-ppc: fix building of kvm.c

PATCH In review Stefan Berger 2 participants 2 messages May 26, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc host, target-ppc: fix building of kvm.c

Below patch fixes the following error when building on a ppc host:

cc1: warnings being treated as errors /root/qemu/qemu-git/target-ppc/kvm.c: In function kvm_arch_get_registers:
/root/qemu/qemu-git/target-ppc/kvm.c:188: error: unused variable sregs

---
 target-ppc/kvm.c |    2 ++
 1 file changed, 2 insertions(+)
target-ppc/kvm.c +2 -0
Index: qemu-git/target-ppc/kvm.c
===================================================================
@@ -185,7 +185,9 @@ int kvm_arch_put_registers(CPUState *env
 int kvm_arch_get_registers(CPUState *env)
 {
     struct kvm_regs regs;
+#ifdef KVM_CAP_PPC_BOOKE_SREGS
     struct kvm_sregs sregs;
+#endif
     uint32_t cr;
     int i, ret;
#1 lore raw

Am 26.05.2011 um 20:50 schrieb Stefan Berger <[email protected]>:

Quoted 7 lines

Below patch fixes the following error when building on a ppc host:

cc1: warnings being treated as errors /root/qemu/qemu-git/target-ppc/kvm.c: In function kvm_arch_get_registers:
/root/qemu/qemu-git/target-ppc/kvm.c:188: error: unused variable sregs

Thanks :). I already posted a patch on the list to fix this issue, so this will be fixed soon.

For the meantime, you could just acked-by mine :)

Alex

Quoted 1 line