From: Adrian Bunk <bunk@stusta.de>
To: linux-kernel@vger.kernel.org
Subject: [2.6 patch] i386/kernel/i387.c: misc cleanups
Date: Sun, 16 Jan 2005 09:03:30 +0100 [thread overview]
Message-ID: <20050116080330.GD4274@stusta.de> (raw)
The patch below contains the following cleanups:
- make a needlessly global variable static
- #if 0 four unused global functions
diffstat output:
arch/i386/kernel/i387.c | 8 +++++++-
include/asm-i386/i387.h | 6 ------
2 files changed, 7 insertions(+), 7 deletions(-)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.11-rc1-mm1-full/include/asm-i386/i387.h.old 2005-01-16 04:32:43.000000000 +0100
+++ linux-2.6.11-rc1-mm1-full/include/asm-i386/i387.h 2005-01-16 04:34:41.000000000 +0100
@@ -17,7 +17,6 @@
#include <asm/sigcontext.h>
#include <asm/user.h>
-extern unsigned long mxcsr_feature_mask;
extern void mxcsr_feature_mask_init(void);
extern void init_fpu(struct task_struct *);
/*
@@ -86,13 +85,8 @@
*/
extern unsigned short get_fpu_cwd( struct task_struct *tsk );
extern unsigned short get_fpu_swd( struct task_struct *tsk );
-extern unsigned short get_fpu_twd( struct task_struct *tsk );
extern unsigned short get_fpu_mxcsr( struct task_struct *tsk );
-extern void set_fpu_cwd( struct task_struct *tsk, unsigned short cwd );
-extern void set_fpu_swd( struct task_struct *tsk, unsigned short swd );
-extern void set_fpu_twd( struct task_struct *tsk, unsigned short twd );
-
/*
* Signal frame handlers...
*/
--- linux-2.6.11-rc1-mm1-full/arch/i386/kernel/i387.c.old 2005-01-16 04:33:07.000000000 +0100
+++ linux-2.6.11-rc1-mm1-full/arch/i386/kernel/i387.c 2005-01-16 04:35:11.000000000 +0100
@@ -24,7 +24,7 @@
#define HAVE_HWFP 1
#endif
-unsigned long mxcsr_feature_mask = 0xffffffff;
+static unsigned long mxcsr_feature_mask = 0xffffffff;
void mxcsr_feature_mask_init(void)
{
@@ -175,6 +175,7 @@
}
}
+#if 0
unsigned short get_fpu_twd( struct task_struct *tsk )
{
if ( cpu_has_fxsr ) {
@@ -183,6 +184,7 @@
return (unsigned short)tsk->thread.i387.fsave.twd;
}
}
+#endif /* 0 */
unsigned short get_fpu_mxcsr( struct task_struct *tsk )
{
@@ -193,6 +195,8 @@
}
}
+#if 0
+
void set_fpu_cwd( struct task_struct *tsk, unsigned short cwd )
{
if ( cpu_has_fxsr ) {
@@ -220,6 +224,8 @@
}
}
+#endif /* 0 */
+
/*
* FXSR floating point environment conversions.
*/
next reply other threads:[~2005-01-16 8:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-16 8:03 Adrian Bunk [this message]
2005-02-06 18:44 Adrian Bunk
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=20050116080330.GD4274@stusta.de \
--to=bunk@stusta.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
Powered by JetHome