From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sheng Yang Subject: [PATCH] KVM: x86 emulator: Eliminate compilation warning in x86_decode_insn() Date: Tue, 28 Sep 2010 16:33:32 +0800 Message-ID: <1285662812-23555-1-git-send-email-sheng@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org, Sheng Yang To: Avi Kivity , Marcelo Tosatti Return-path: Received: from mga03.intel.com ([143.182.124.21]:24081 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753284Ab0I1Idj (ORCPT ); Tue, 28 Sep 2010 04:33:39 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Eliminate: arch/x86/kvm/emulate.c:801: warning: =E2=80=98sv=E2=80=99 may be used u= ninitialized in this function on gcc 4.1.2 Signed-off-by: Sheng Yang --- 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 aead72e..d0df25d 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -798,7 +798,7 @@ done: =20 static void fetch_bit_operand(struct decode_cache *c) { - long sv, mask; + long sv =3D 0, mask; =20 if (c->dst.type =3D=3D OP_MEM && c->src.type =3D=3D OP_REG) { mask =3D ~(c->dst.bytes * 8 - 1); --=20 1.7.0.1