lkml.org 
[lkml]   [2011]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH] kvm/emulate.c warnings
From
$ make allmodconfig
$ make
.....
arch/x86/kvm/emulate.c: In function 'emulate_sysexit':
arch/x86/kvm/emulate.c:1706: warning: 'cs_sel' may be used
uninitialized in this function
arch/x86/kvm/emulate.c:1706: warning: 'ss_sel' may be used
uninitialized in this function
......


patch to fix warnings.

--- a/arch/x86/kvm/emulate.c    2011-05-03 23:28:18.000000000 +0000
+++ b/arch/x86/kvm/emulate.c    2011-05-08 21:07:19.000000000 +0000
@@ -1703,7 +1703,7 @@
       struct desc_struct cs, ss;
       u64 msr_data;
       int usermode;
-       u16 cs_sel, ss_sel;
+       u16 cs_sel=0, ss_sel=0;

       /* inject #GP if in real mode or Virtual 8086 mode */
       if (ctxt->mode == X86EMUL_MODE_REAL ||
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2011-05-09 07:49    [W:0.043 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site