diff options
author | Asias He <asias.hejun@gmail.com> | 2010-06-19 10:52:12 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-01 09:46:53 +0200 |
commit | 6045be5dea7f7905433585e524f884b711e3796a (patch) | |
tree | 687fab4ea8a57c5f1248f57e740c2f8e29c4574e /arch/powerpc | |
parent | KVM: Fix typos in Documentation/kvm/mmu.txt (diff) | |
download | linux-6045be5dea7f7905433585e524f884b711e3796a.tar.xz linux-6045be5dea7f7905433585e524f884b711e3796a.zip |
KVM: PPC: fix uninitialized variable warning in kvm_ppc_core_deliver_interrupts
Fixes:
arch/powerpc/kvm/booke.c: In function 'kvmppc_core_deliver_interrupts':
arch/powerpc/kvm/booke.c:147: warning: 'msr_mask' may be used uninitialized in this function
Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kvm/booke.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index b687f430f8c0..8d4e35f5372c 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) { |