From patchwork Fri Jun 11 11:23:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denis Kirjanov X-Patchwork-Id: 105562 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5BBNZqn030563 for ; Fri, 11 Jun 2010 11:23:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753187Ab0FKLXc (ORCPT ); Fri, 11 Jun 2010 07:23:32 -0400 Received: from hera.kernel.org ([140.211.167.34]:53623 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752058Ab0FKLXc (ORCPT ); Fri, 11 Jun 2010 07:23:32 -0400 Received: from hera.kernel.org (localhost [127.0.0.1]) by hera.kernel.org (8.14.3/8.14.3) with ESMTP id o5BBNQNX024198 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 11 Jun 2010 11:23:26 GMT X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.95.2 at hera.kernel.org Received: (from dkirjanov@localhost) by hera.kernel.org (8.14.3/8.14.2/Submit) id o5BBNQ67024197; Fri, 11 Jun 2010 11:23:26 GMT Date: Fri, 11 Jun 2010 11:23:26 +0000 From: Denis Kirjanov To: kvm@vger.kernel.org Cc: agraf@suse.de, kvm-ppc@vger.kernel.org, hollisb@us.ibm.com, ehrhardt@linux.vnet.ibm.com Subject: [PATCH] kvm/ppc: fix build warning in kvm_arch_vcpu_ioctl_run Message-ID: <20100611112326.GA15166@hera.kernel.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) X-Spam-Status: No, score=0.4 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on hera.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 11 Jun 2010 11:23:35 +0000 (UTC) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (hera.kernel.org [127.0.0.1]); Fri, 11 Jun 2010 11:23:26 +0000 (UTC) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 9b8683f..64532fd 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);