From: Andrew Morton Date: Wed, 19 Mar 2008 01:46:06 +0000 (-0700) Subject: i386: arch/x86/math-emu/fpu_entry.c warning fix X-Git-Tag: upstream/snapshot3+hdmi~26319^2~277 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc7594e420283cf6070538655f1a4fbebb3fb853;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git i386: arch/x86/math-emu/fpu_entry.c warning fix arch/x86/math-emu/fpu_entry.c:555: warning: 'entry_sel_off.empty' is used uninitialized in this function Presumably it's harmless, but I'll sleep better at night knowing that we initialised it. Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/math-emu/fpu_entry.c b/arch/x86/math-emu/fpu_entry.c index 760baee..4bab3b1 100644 --- a/arch/x86/math-emu/fpu_entry.c +++ b/arch/x86/math-emu/fpu_entry.c @@ -276,6 +276,7 @@ asmlinkage void math_emulate(long arg) entry_sel_off.offset = FPU_ORIG_EIP; entry_sel_off.selector = FPU_CS; entry_sel_off.opcode = (byte1 << 8) | FPU_modrm; + entry_sel_off.empty = 0; FPU_rm = FPU_modrm & 7;