summaryrefslogtreecommitdiffstats
path: root/include/linux/elfcore.h
diff options
context:
space:
mode:
authorBrian Gerst <brgerst@gmail.com>2022-03-25 11:39:51 -0400
committerBorislav Petkov <bp@suse.de>2022-04-14 14:08:26 +0200
commit9554e908fb5d02e48a681d1eca180225bf109e83 (patch)
tree311c6ad064829f9e43c0d8ceefab52ffe866e941 /include/linux/elfcore.h
parentf5d9283ecb33329073033029fe427155aa0abfb1 (diff)
downloadlinux-9554e908fb5d02e48a681d1eca180225bf109e83.tar.bz2
ELF: Remove elf_core_copy_kernel_regs()
x86-32 was the last architecture that implemented separate user and kernel registers. Signed-off-by: Brian Gerst <brgerst@gmail.com> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Andy Lutomirski <luto@kernel.org> Acked-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220325153953.162643-3-brgerst@gmail.com
Diffstat (limited to 'include/linux/elfcore.h')
-rw-r--r--include/linux/elfcore.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/elfcore.h b/include/linux/elfcore.h
index f8e206e82476..346a8b56cdc8 100644
--- a/include/linux/elfcore.h
+++ b/include/linux/elfcore.h
@@ -84,15 +84,6 @@ static inline void elf_core_copy_regs(elf_gregset_t *elfregs, struct pt_regs *re
#endif
}
-static inline void elf_core_copy_kernel_regs(elf_gregset_t *elfregs, struct pt_regs *regs)
-{
-#ifdef ELF_CORE_COPY_KERNEL_REGS
- ELF_CORE_COPY_KERNEL_REGS((*elfregs), regs);
-#else
- elf_core_copy_regs(elfregs, regs);
-#endif
-}
-
static inline int elf_core_copy_task_regs(struct task_struct *t, elf_gregset_t* elfregs)
{
#if defined (ELF_CORE_COPY_TASK_REGS)