From patchwork Fri Mar 26 11:28:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Majia X-Patchwork-Id: 88471 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 o2QBUPI3030034 for ; Fri, 26 Mar 2010 11:30:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753448Ab0CZLaX (ORCPT ); Fri, 26 Mar 2010 07:30:23 -0400 Received: from mail-gw0-f46.google.com ([74.125.83.46]:47238 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751305Ab0CZLaW (ORCPT ); Fri, 26 Mar 2010 07:30:22 -0400 Received: by gwaa18 with SMTP id a18so2733973gwa.19 for ; Fri, 26 Mar 2010 04:30:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:reply-to:mime-version:content-type:content-disposition :user-agent; bh=i4XkwxmTF8JmS4NbPRn0xFaWRSX49dS9rczZV/wSO4k=; b=vk67g6/BObXzktl8WdhipKrNzrizkKWCAqV22Fp9/h/4IFF9go5W1DMt7oPNCJwWzc voykhNaBNuHvm4SRFXIe4b4/Q1Yre0KSOVWt1HMxZupwbZWH6quIdTNfIeh0eBcC9u2O SI17N4IP0qvGH50txRnPIAkHntSQ/RcihllvU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:reply-to:mime-version:content-type :content-disposition:user-agent; b=BSDlTHvVwLmoagIk+KAvu0lQsCgDN4AAYmBbf7CVzGLTfEdGP66lejhrrcBut45YZg nJ7CiLoIa6/1AbLuXDy3OE03BrYqP8SMvTS/w/0Fr4eiToWObxSOUyNzLb1583+MJSbo 9c6LH292h36rmOeSP2MWAxlpOsWZgA+ltNHVw= Received: by 10.150.93.20 with SMTP id q20mr740538ybb.343.1269603021298; Fri, 26 Mar 2010 04:30:21 -0700 (PDT) Received: from localhost ([61.48.44.31]) by mx.google.com with ESMTPS id j42sm617466ibr.7.2010.03.26.04.30.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 26 Mar 2010 04:30:21 -0700 (PDT) Date: Fri, 26 Mar 2010 19:28:20 +0800 From: Bruce Majia To: agraf@suse.de, kvm-ppc@vger.kernel.org, kvm@vger.kernel.org Subject: [PATCH] KVM: PPC: fix build error for un-initialised var Message-ID: <20100326112820.GB14003@localhost> Reply-To: Bruce Majia MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-08-17) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.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, 26 Mar 2010 11:30:26 +0000 (UTC) diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index 4d686cc..0cde83b 100644 --- a/arch/powerpc/kvm/booke.c +++ b/arch/powerpc/kvm/booke.c @@ -137,7 +137,7 @@ static int kvmppc_booke_irqprio_deliver(struct kvm_vcpu *vcpu, unsigned int priority) { int allowed = 0; - ulong msr_mask; + ulong msr_mask = 0; bool update_esr = false, update_dear = false; switch (priority) { diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 51aedd7..372b678 100644 --- a/arch/powerpc/kvm/powerpc.c +++ b/arch/powerpc/kvm/powerpc.c @@ -277,7 +277,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) { - ulong gpr; + ulong gpr = 0; if (run->mmio.len > sizeof(gpr)) { printk(KERN_ERR "bad MMIO length: %d\n", run->mmio.len);