* [PATCH] KVM: PPC: fix uninitialized variable warning
@ 2010-06-19 8:52 Asias He
2010-06-20 8:19 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Asias He @ 2010-06-19 8:52 UTC (permalink / raw)
To: kvm, Avi Kivity, Marcelo Tosatti, Naphtali Sprei; +Cc: Asias He
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>
---
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 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) {
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] KVM: PPC: fix uninitialized variable warning
2010-06-19 8:52 [PATCH] KVM: PPC: fix uninitialized variable warning Asias He
@ 2010-06-20 8:19 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2010-06-20 8:19 UTC (permalink / raw)
To: Asias He; +Cc: kvm, Marcelo Tosatti, Naphtali Sprei
On 06/19/2010 11:52 AM, Asias He wrote:
> 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
>
>
Applied, thanks.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-20 8:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-19 8:52 [PATCH] KVM: PPC: fix uninitialized variable warning Asias He
2010-06-20 8:19 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox