summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDenis Kirjanov <dkirjanov@hera.kernel.org>2010-06-11 11:23:26 +0000
committerAvi Kivity <avi@redhat.com>2010-08-01 10:46:36 +0300
commit69b61833f7ce6e61e196c8a724e4d1278b24ac02 (patch)
tree338419e24b23d96b83bf2890cb525be4be26371b /arch
parent2390218b6aa2eb3784b0a82fa811c19097dc793a (diff)
downloadblackbird-obmc-linux-69b61833f7ce6e61e196c8a724e4d1278b24ac02.tar.gz
blackbird-obmc-linux-69b61833f7ce6e61e196c8a724e4d1278b24ac02.zip
KVM: PPC: fix build warning in kvm_arch_vcpu_ioctl_run
Fix compile warning: CC [M] arch/powerpc/kvm/powerpc.o arch/powerpc/kvm/powerpc.c: In function 'kvm_arch_vcpu_ioctl_run': arch/powerpc/kvm/powerpc.c:290: warning: 'gpr' may be used uninitialized in this function arch/powerpc/kvm/powerpc.c:290: note: 'gpr' was declared here Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kvm/powerpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c
index a1d87508892e..b5ebdfbed20b 100644
--- a/arch/powerpc/kvm/powerpc.c
+++ b/arch/powerpc/kvm/powerpc.c
@@ -287,7 +287,7 @@ static void kvmppc_complete_dcr_load(struct kvm_vcpu *vcpu,
static void kvmppc_complete_mmio_load(struct kvm_vcpu *vcpu,
struct kvm_run *run)
{
- u64 gpr;
+ u64 uninitialized_var(gpr);
if (run->mmio.len > sizeof(gpr)) {
printk(KERN_ERR "bad MMIO length: %d\n", run->mmio.len);
OpenPOWER on IntegriCloud