summaryrefslogtreecommitdiffstats
path: root/include/linux/elfcore.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2022-09-03 20:23:56 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2022-11-24 23:24:23 -0500
commitbdbadfcc37c5c8f9f2a401a18eae71b0c28799ee (patch)
tree63d35510613ef8b4a866beff0eb09e5c1ca0c964 /include/linux/elfcore.h
parentfcf1492d6697fb22a4328260b0c76be12ed3badd (diff)
downloadlinux-stable-bdbadfcc37c5c8f9f2a401a18eae71b0c28799ee.tar.gz
linux-stable-bdbadfcc37c5c8f9f2a401a18eae71b0c28799ee.tar.bz2
linux-stable-bdbadfcc37c5c8f9f2a401a18eae71b0c28799ee.zip
[elf][non-regset] uninline elf_core_copy_task_fpregs() (and lose pt_regs argument)
Don't bother with pointless macros - we are not sharing it with aout coredumps anymore. Just convert the underlying functions to the same arguments (nobody uses regs, actually) and call them elf_core_copy_task_fpregs(). And unexport the entire bunch, while we are at it. [added missing includes in arch/{csky,m68k,um}/kernel/process.c to avoid extra warnings about the lack of externs getting added to huge piles for those files. Pointless, but...] Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/elfcore.h')
-rw-r--r--include/linux/elfcore.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/include/linux/elfcore.h b/include/linux/elfcore.h
index fcf58e16d1e3..9ec81290e3c8 100644
--- a/include/linux/elfcore.h
+++ b/include/linux/elfcore.h
@@ -94,16 +94,7 @@ static inline int elf_core_copy_task_regs(struct task_struct *t, elf_gregset_t*
return 0;
}
-extern int dump_fpu (struct pt_regs *, elf_fpregset_t *);
-
-static inline int elf_core_copy_task_fpregs(struct task_struct *t, struct pt_regs *regs, elf_fpregset_t *fpu)
-{
-#ifdef ELF_CORE_COPY_FPREGS
- return ELF_CORE_COPY_FPREGS(t, fpu);
-#else
- return dump_fpu(regs, fpu);
-#endif
-}
+int elf_core_copy_task_fpregs(struct task_struct *t, elf_fpregset_t *fpu);
#ifdef CONFIG_ARCH_BINFMT_ELF_EXTRA_PHDRS
/*