lkml.org 
[lkml]   [2005]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.6 patch] i386/kernel/i387.c: misc cleanups
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.
*/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:09    [W:0.031 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site