Thread (5 messages) 5 messages, 3 authors, 2010-06-25

Re: [PATCH] kvm/ppc: fix build warning

From: Denis Kirjanov <dkirjanov@kernel.org>
Date: 2010-06-25 09:40:04

On 06/25/2010 01:02 PM, Denis Kirjanov wrote:
On 06/25/2010 12:42 AM, Alexander Graf wrote:
quoted
On 24.06.2010, at 21:44, Denis Kirjanov wrote:
quoted
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>
Are you sure this isn't a broken compiler? I don't see where it could
be used uninitialized.
I'm using gcc version 4.3.4 (Gentoo 4.3.4 p1.1, pie-10.1.5)
slb pointer initialized inside conditional branch
and used later in the case case MSR_DR|MSR_IR
This is based on linux-next tree (-next-20100623)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help