From patchwork Sat Jun 19 08:52:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asias He X-Patchwork-Id: 106972 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 o5J8qTX6019253 for ; Sat, 19 Jun 2010 08:52:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754730Ab0FSIw2 (ORCPT ); Sat, 19 Jun 2010 04:52:28 -0400 Received: from mail-px0-f174.google.com ([209.85.212.174]:56244 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754728Ab0FSIw1 (ORCPT ); Sat, 19 Jun 2010 04:52:27 -0400 Received: by pxi12 with SMTP id 12so745642pxi.19 for ; Sat, 19 Jun 2010 01:52:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=IyENIP30KrdYHymJAyEORlGFYKlva6mSR0ICdoy2M3o=; b=q538/UQnNGtCQiAr0f0+SZyok/k0NzHQCxVwcr6sr5cyhtYpBVEV2qXoBjlAmHBCOV IZXPs6+xSPqAqDV6MgELR/Ky/Zn4qUNJnJeNCsXao2J+IOrqntJ416GccUuPK+kNs5Sp pI3EKnBGa71KNO8sJlIO1DJyos4DBI8i9YPBs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=DN/Rs0Nop/X6+082+Fl0qY60xkr/I7wJInZmU+JWWLSOwt0dXilSVsXLnikcM1oV+I YnyU1wdVHOwr4FhKo5nf5HrKM44yq7KOFRp6dZnRw4UXeO2rr/h4gXd1pTiI+BynUarj 34T0XlRzFUEUnMrBNFG+TlCgGzjcNa/pXvQFo= Received: by 10.115.64.6 with SMTP id r6mr1727315wak.226.1276937546726; Sat, 19 Jun 2010 01:52:26 -0700 (PDT) Received: from localhost.localdomain ([219.224.169.130]) by mx.google.com with ESMTPS id n32sm119952239wae.22.2010.06.19.01.52.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 19 Jun 2010 01:52:26 -0700 (PDT) From: Asias He To: kvm@vger.kernel.org, Avi Kivity , Marcelo Tosatti , Naphtali Sprei Cc: Asias He Subject: [PATCH] KVM: PPC: fix uninitialized variable warning Date: Sat, 19 Jun 2010 16:52:12 +0800 Message-Id: <1276937532-4752-1-git-send-email-asias.hejun@gmail.com> X-Mailer: git-send-email 1.7.1 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]); Sat, 19 Jun 2010 08:52:30 +0000 (UTC) diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index b687f43..8d4e35f 100644 --- a/arch/powerpc/kvm/booke.c +++ b/arch/powerpc/kvm/booke.c @@ -144,7 +144,7 @@ static int kvmppc_booke_irqprio_deliver(struct kvm_vcpu *vcpu, unsigned int priority) { int allowed = 0; - ulong msr_mask; + ulong uninitialized_var(msr_mask); bool update_esr = false, update_dear = false; switch (priority) {