From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261287AbVBFSs0 (ORCPT ); Sun, 6 Feb 2005 13:48:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261268AbVBFSrr (ORCPT ); Sun, 6 Feb 2005 13:47:47 -0500 Received: from emailhub.stusta.mhn.de ([141.84.69.5]:55312 "HELO mailout.stusta.mhn.de") by vger.kernel.org with SMTP id S261287AbVBFSpA (ORCPT ); Sun, 6 Feb 2005 13:45:00 -0500 Date: Sun, 6 Feb 2005 19:44:57 +0100 From: Adrian Bunk To: Andrew Morton Cc: linux-kernel@vger.kernel.org Subject: [2.6 patch] i386/kernel/i387.c: misc cleanups Message-ID: <20050206184457.GZ3129@stusta.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This patch contains the following cleanups: - make a needlessly global variable static - #if 0 four unused global functions Signed-off-by: Adrian Bunk --- This patch was already sent on: - 16 Jan 2005 arch/i386/kernel/i387.c | 8 +++++++- include/asm-i386/i387.h | 6 ------ 2 files changed, 7 insertions(+), 7 deletions(-) --- 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 #include -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. */