From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiao Guangrong Subject: [PATCH 3/7] KVM: fix uninitialized warning Date: Sun, 15 May 2011 05:37:31 +0800 Message-ID: <4DCEF61B.5000303@cn.fujitsu.com> References: <4DCEF5B1.3050706@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Marcelo Tosatti , LKML , KVM To: Avi Kivity Return-path: In-Reply-To: <4DCEF5B1.3050706@cn.fujitsu.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org =46ix: warning: =E2=80=98cs_sel=E2=80=99 may be used uninitialized in this fu= nction warning: =E2=80=98ss_sel=E2=80=99 may be used uninitialized in this fu= nction Signed-off-by: Xiao Guangrong --- arch/x86/kvm/emulate.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 291c872..ea32340 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -2015,7 +2015,7 @@ emulate_sysexit(struct x86_emulate_ctxt *ctxt, st= ruct x86_emulate_ops *ops) struct desc_struct cs, ss; u64 msr_data; int usermode; - u16 cs_sel, ss_sel; + u16 cs_sel =3D 0, ss_sel =3D 0; =20 /* inject #GP if in real mode or Virtual 8086 mode */ if (ctxt->mode =3D=3D X86EMUL_MODE_REAL || --=20 1.7.4.4