Skip to content

Commit 4dfa103

Browse files
author
Al Viro
committed
x86: kill dump_fpu()
dead since the removal of aout coredump support... Signed-off-by: Al Viro <[email protected]>
1 parent 36c8673 commit 4dfa103

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

arch/x86/include/asm/fpu/internal.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ extern int fpu__copy(struct task_struct *dst, struct task_struct *src);
3434
extern void fpu__clear_user_states(struct fpu *fpu);
3535
extern void fpu__clear_all(struct fpu *fpu);
3636
extern int fpu__exception_code(struct fpu *fpu, int trap_nr);
37-
extern int dump_fpu(struct pt_regs *ptregs, struct user_i387_struct *fpstate);
3837

3938
/*
4039
* Boot time FPU initialization functions:

arch/x86/kernel/fpu/regset.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -356,20 +356,4 @@ int fpregs_set(struct task_struct *target, const struct user_regset *regset,
356356
return ret;
357357
}
358358

359-
/*
360-
* FPU state for core dumps.
361-
* This is only used for a.out dumps now.
362-
* It is declared generically using elf_fpregset_t (which is
363-
* struct user_i387_struct) but is in fact only used for 32-bit
364-
* dumps, so on 64-bit it is really struct user_i387_ia32_struct.
365-
*/
366-
int dump_fpu(struct pt_regs *regs, struct user_i387_struct *ufpu)
367-
{
368-
struct task_struct *tsk = current;
369-
370-
return !fpregs_get(tsk, NULL, 0, sizeof(struct user_i387_ia32_struct),
371-
ufpu, NULL);
372-
}
373-
EXPORT_SYMBOL(dump_fpu);
374-
375359
#endif /* CONFIG_X86_32 || CONFIG_IA32_EMULATION */

0 commit comments

Comments
 (0)