From: Stefan Berger <stefanb@linux.vnet.ibm.com>
To: qemu-devel@nongnu.org, agraf@suse.de
Subject: [Qemu-devel] [PATCH] ppc host, target-ppc: fix building of kvm.c
Date: Thu, 26 May 2011 14:50:55 -0400 [thread overview]
Message-ID: <4DDEA10F.5070108@linux.vnet.ibm.com> (raw)
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;
next reply other threads:[~2011-05-26 18:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-26 18:50 Stefan Berger [this message]
2011-05-26 21:30 ` [Qemu-devel] [PATCH] ppc host, target-ppc: fix building of kvm.c Alexander Graf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DDEA10F.5070108@linux.vnet.ibm.com \
--to=stefanb@linux.vnet.ibm.com \
--cc=agraf@suse.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.