KVM: shut up uninit compiler warning in paging_tmpl.h
authorJaswinder Singh Rajput <jaswinder@kernel.org>
Wed, 20 May 2009 04:29:35 +0000 (09:59 +0530)
committerAvi Kivity <avi@redhat.com>
Sun, 28 Jun 2009 11:10:32 +0000 (14:10 +0300)
commitbde892232532ed522bb56b04576d07f91e59b3c7
treead190dab47f97d6f9ee77c0456b476bca20bc490
parent9e6996240afcbe61682eab8eeaeb65c34333164d
KVM: shut up uninit compiler warning in paging_tmpl.h

Dixes compilation warning:
  CC      arch/x86/kernel/io_delay.o
 arch/x86/kvm/paging_tmpl.h: In function ‘paging64_fetch’:
 arch/x86/kvm/paging_tmpl.h:279: warning: ‘sptep’ may be used uninitialized in this function
 arch/x86/kvm/paging_tmpl.h: In function ‘paging32_fetch’:
 arch/x86/kvm/paging_tmpl.h:279: warning: ‘sptep’ may be used uninitialized in this function

warning is bogus (always have a least one level), but need to shut the compiler
up.

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/paging_tmpl.h