* [Qemu-devel] [PATCH] ppc host, target-ppc: fix building of kvm.c
@ 2011-05-26 18:50 Stefan Berger
2011-05-26 21:30 ` Alexander Graf
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Berger @ 2011-05-26 18:50 UTC (permalink / raw)
To: qemu-devel, agraf
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 <stefanb@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;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] ppc host, target-ppc: fix building of kvm.c
2011-05-26 18:50 [Qemu-devel] [PATCH] ppc host, target-ppc: fix building of kvm.c Stefan Berger
@ 2011-05-26 21:30 ` Alexander Graf
0 siblings, 0 replies; 2+ messages in thread
From: Alexander Graf @ 2011-05-26 21:30 UTC (permalink / raw)
To: Stefan Berger; +Cc: qemu-devel@nongnu.org
Am 26.05.2011 um 20:50 schrieb Stefan Berger <stefanb@linux.vnet.ibm.com>:
> 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 <stefanb@linux.vnet.ibm.com>
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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-26 21:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-26 18:50 [Qemu-devel] [PATCH] ppc host, target-ppc: fix building of kvm.c Stefan Berger
2011-05-26 21:30 ` Alexander Graf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).