public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Denis Kirjanov <dkirjanov@hera•kernel.org>
To: agraf@suse•de
Cc: mtosatti@redhat•com, avi@redhat•com, kvm-ppc@vger•kernel.org,
	linuxppc-dev@ozlabs•org
Subject: [PATCH] kvm/ppc: fix build warning
Date: Thu, 24 Jun 2010 19:44:15 +0000	[thread overview]
Message-ID: <20100624194415.GA24107@hera.kernel.org> (raw)

Fix build warning:
arch/powerpc/kvm/book3s_64_mmu.c: In function 'kvmppc_mmu_book3s_64_esid_to_vsid':
arch/powerpc/kvm/book3s_64_mmu.c:446: warning: 'slb' may be used uninitialized in this function
Signed-off-by: Denis Kirjanov <dkirjanov@kernel•org>
---
arch/powerpc/kvm/book3s_64_mmu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kvm/book3s_64_mmu.c b/arch/powerpc/kvm/book3s_64_mmu.c
index 4025ea2..61f2621 100644
--- a/arch/powerpc/kvm/book3s_64_mmu.c
+++ b/arch/powerpc/kvm/book3s_64_mmu.c
@@ -443,7 +443,7 @@ static int kvmppc_mmu_book3s_64_esid_to_vsid(struct kvm_vcpu *vcpu, ulong esid,
 					     u64 *vsid)
 {
 	ulong ea = esid << SID_SHIFT;
-	struct kvmppc_slb *slb;
+	struct kvmppc_slb *uninitialized_var(slb);
 	u64 gvsid = esid;
 
 	if (vcpu->arch.msr & (MSR_DR|MSR_IR)) {

             reply	other threads:[~2010-06-24 19:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-24 19:44 Denis Kirjanov [this message]
2010-06-24 20:42 ` [PATCH] kvm/ppc: fix build warning Alexander Graf
2010-06-25  9:02   ` Denis Kirjanov
2010-06-25  9:21     ` Alexander Graf
2010-06-25  9:40     ` Denis Kirjanov

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=20100624194415.GA24107@hera.kernel.org \
    --to=dkirjanov@hera$(echo .)kernel.org \
    --cc=agraf@suse$(echo .)de \
    --cc=avi@redhat$(echo .)com \
    --cc=kvm-ppc@vger$(echo .)kernel.org \
    --cc=linuxppc-dev@ozlabs$(echo .)org \
    --cc=mtosatti@redhat$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox