diff options
author | Dmitri Vorobiev <dmitri.vorobiev@movial.fi> | 2008-07-15 12:57:31 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-07-20 09:38:17 -0400 |
commit | f028b8605613ade67fda554e30d367911d6c7222 (patch) | |
tree | ce9eaa54bb1a1bf287a9eea69fba1b44c1437a24 /include/asm-mips/fpu.h | |
parent | 3450004a8cec8bab246372a1cabb9c2483b1e6c3 (diff) |
[MIPS] Fix missing prototypes in asm/fpu.h
While building the Malta defconfig, sparse spat the following
warnings:
>>>>>>>>>>>>>>>>>>
arch/mips/math-emu/kernel_linkage.c:31:6: warning: symbol
'fpu_emulator_init_fpu' was not declared. Should it be static?
arch/mips/math-emu/kernel_linkage.c:54:5: warning: symbol
'fpu_emulator_save_context' was not declared. Should it be
static?
arch/mips/math-emu/kernel_linkage.c:68:5: warning: symbol
'fpu_emulator_restore_context' was not declared. Should it be
static?
>>>>>>>>>>>>>>>>>>
This patch fixes these errors by adding the proper prototypes
to the include/asm-mips/fpu.h header, and actually using this
header in the sparse-spotted source file.
Build-tested with Malta defconfig.
Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.fi>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/fpu.h')
-rw-r--r-- | include/asm-mips/fpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-mips/fpu.h b/include/asm-mips/fpu.h index e59d4c039661..8a3ef247659a 100644 --- a/include/asm-mips/fpu.h +++ b/include/asm-mips/fpu.h | |||
@@ -35,6 +35,8 @@ extern asmlinkage int (*save_fp_context32)(struct sigcontext32 __user *sc); | |||
35 | extern asmlinkage int (*restore_fp_context32)(struct sigcontext32 __user *sc); | 35 | extern asmlinkage int (*restore_fp_context32)(struct sigcontext32 __user *sc); |
36 | 36 | ||
37 | extern void fpu_emulator_init_fpu(void); | 37 | extern void fpu_emulator_init_fpu(void); |
38 | extern int fpu_emulator_save_context(struct sigcontext __user *sc); | ||
39 | extern int fpu_emulator_restore_context(struct sigcontext __user *sc); | ||
38 | extern void _init_fpu(void); | 40 | extern void _init_fpu(void); |
39 | extern void _save_fp(struct task_struct *); | 41 | extern void _save_fp(struct task_struct *); |
40 | extern void _restore_fp(struct task_struct *); | 42 | extern void _restore_fp(struct task_struct *); |