summaryrefslogtreecommitdiffstats
path: root/virt/kvm/kvm_main.c
diff options
context:
space:
mode:
authorValdis Kletnieks <Valdis.Kletnieks@vt.edu>2015-08-29 17:49:16 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2015-09-06 16:26:23 +0200
commite8dd2d2d641cb2724ee10e76c0ad02e04289c017 (patch)
tree188e752a2fa07e32f25bc41e77b272caeaec08fd /virt/kvm/kvm_main.c
parentefbb288afc2f3079fa5e9308f4d9d06a390babdc (diff)
downloadop-kernel-dev-e8dd2d2d641cb2724ee10e76c0ad02e04289c017.zip
op-kernel-dev-e8dd2d2d641cb2724ee10e76c0ad02e04289c017.tar.gz
Silence compiler warning in arch/x86/kvm/emulate.c
Compiler warning: CC [M] arch/x86/kvm/emulate.o arch/x86/kvm/emulate.c: In function "__do_insn_fetch_bytes": arch/x86/kvm/emulate.c:814:9: warning: "linear" may be used uninitialized in this function [-Wmaybe-uninitialized] GCC is smart enough to realize that the inlined __linearize may return before setting the value of linear, but not smart enough to realize the same X86EMU_CONTINUE blocks actual use of the value. However, the value of 'linear' can only be set to one value, so hoisting the one line of code upwards makes GCC happy with the code. Reported-by: Aruna Hewapathirane <aruna.hewapathirane@gmail.com> Tested-by: Aruna Hewapathirane <aruna.hewapathirane@gmail.com> Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt/kvm/kvm_main.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud