From: Michael Frank at BerliOS <mhf@hornet.berlios.de>
To: <linux-kernel@vger.kernel.org>, "Kernel Mailing List"@hornet.berlios.de
Subject: [PATCH] 2.6.11-rc3 fix compile failure in arch/i386/kernel/i387.c
Date: Sat, 05 Feb 2005 06:29:06 +0100 [thread overview]
Message-ID: <420459A2.nailH9511F7VV@hornet.berlios.de> (raw)
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 <mhf@berlios.de>
diff -uN linux-2.6.11-rc3-Vanilla/arch/i386/kernel/i387.c linux-2.6.11-rc3-mhf241/arch/i386/kernel/i387.c
--- linux-2.6.11-rc3-Vanilla/arch/i386/kernel/i387.c 2005-02-04 10:43:06.000000000 +0100
+++ linux-2.6.11-rc3-mhf241/arch/i386/kernel/i387.c 2005-02-04 11:12:53.000000000 +0100
@@ -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,
next reply other threads:[~2005-02-05 5:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-05 5:29 Michael Frank at BerliOS [this message]
2005-02-05 5:36 ` Al Viro
2005-02-05 7:40 Michael Frank at BerliOS
2005-02-05 7:52 ` Sam Ravnborg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=420459A2.nailH9511F7VV@hornet.berlios.de \
--to=mhf@hornet.berlios.de \
--cc="Kernel Mailing List"@hornet.berlios.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®