summaryrefslogtreecommitdiff
path: root/include/linux/elfcore.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2022-09-04 17:15:38 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2022-10-23 18:06:56 -0400
commitfcf1492d6697fb22a4328260b0c76be12ed3badd (patch)
tree438399389c24273e94f86f66f855c1765e24e26f /include/linux/elfcore.h
parent4b0e21d64253f56fa5b177e08383934680957697 (diff)
elf_core_copy_task_regs(): task_pt_regs is defined everywhere
Had been since 2011 for all live architectures, ever since 2013 for all architectures, period. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/elfcore.h')
-rw-r--r--include/linux/elfcore.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/elfcore.h b/include/linux/elfcore.h
index 346a8b56cdc8..fcf58e16d1e3 100644
--- a/include/linux/elfcore.h
+++ b/include/linux/elfcore.h
@@ -88,7 +88,7 @@ static inline int elf_core_copy_task_regs(struct task_struct *t, elf_gregset_t*
{
#if defined (ELF_CORE_COPY_TASK_REGS)
return ELF_CORE_COPY_TASK_REGS(t, elfregs);
-#elif defined (task_pt_regs)
+#else
elf_core_copy_regs(elfregs, task_pt_regs(t));
#endif
return 0;