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 Signed-off-by: Stefan Berger <stef...@linux.vnet.ibm.com> --- target-ppc/kvm.c | 2 ++ 1 file changed, 2 insertions(+) Index: qemu-git/target-ppc/kvm.c =================================================================== --- qemu-git.orig/target-ppc/kvm.c +++ 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;