Skip to contentSkip to conversation

i386/kernel/i387.c: misc cleanups

PATCH New Adrian Bunk 1 participant 1 message Jan 16, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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(-)
include/asm-i386/i387.h renamed from include/asm-i386/i387.h.old +0 -6
@@ -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...
  */
arch/i386/kernel/i387.c renamed from arch/i386/kernel/i387.c.old +7 -1
@@ -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.
  */