Skip to contentSkip to conversation

2.6.11-rc3 fix compile failure in arch/i386/kernel/i387.c

PATCH In review Michael Frank at BerliOS 2 participants 2 messages Feb 5, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.6.11-rc3 fix compile failure in arch/i386/kernel/i387.c

Using patch-2.6.11-rc3.bz2 from kernel.org on top of 2.6.10,
a compile failure in /arch/i386/kernel/i387.c due to tsk->used_math undef.

The patch log shows offsets but no rejects

patching file arch/i386/kernel/i387.c
Hunk #6 succeeded at 538 (offset 15 lines).
Hunk #7 succeeded at 553 (offset 15 lines).

Patch below fixes it.

Regards
Michael

Signed off by: Michael Frank <[email protected]>

arch/i386/kernel/i387.c 2005-02-04 11:12:53.000000000 +0100 renamed from arch/i386/kernel/i387.c 2005-02-04 10:43:06.000000000 +0100 +1 -1
diff -uN linux-2.6.11-rc3-Vanilla/arch/i386/kernel/i387.c linux-2.6.11-rc3-mhf241/arch/i386/kernel/i387.c
@@ -526,7 +526,7 @@
        int fpvalid;
        struct task_struct *tsk = current;
 
-       fpvalid = tsk->used_math && cpu_has_fxsr;
+       fpvalid = !!used_math() && cpu_has_fxsr;
        if ( fpvalid ) {
                unlazy_fpu( tsk );
                memcpy( fpu, &tsk->thread.i387.fxsave,
#1 lore raw
Quoted 8 lines · Michael Frank at BerliOS

Using patch-2.6.11-rc3.bz2 from kernel.org on top of 2.6.10,
a compile failure in /arch/i386/kernel/i387.c due to tsk->used_math undef.

The patch log shows offsets but no rejects

patching file arch/i386/kernel/i387.c
Hunk #6 succeeded at 538 (offset 15 lines).
Hunk #7 succeeded at 553 (offset 15 lines).

No offsets (or compile problems) here. Have you verified that your 2.6.10 had no local changes?