Skip to content

Commit cc7594e

Browse files
akpm00Ingo Molnar
authored andcommitted
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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
1 parent b450e5e commit cc7594e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/math-emu/fpu_entry.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ asmlinkage void math_emulate(long arg)
276276
entry_sel_off.offset = FPU_ORIG_EIP;
277277
entry_sel_off.selector = FPU_CS;
278278
entry_sel_off.opcode = (byte1 << 8) | FPU_modrm;
279+
entry_sel_off.empty = 0;
279280

280281
FPU_rm = FPU_modrm & 7;
281282

0 commit comments

Comments
 (0)