Commit 541880d9a2c7871f6370071d55aa6662d329c51e
1 parent
4aaefee589
Exists in
master
and in
20 other branches
do_coredump(): get rid of pt_regs argument
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Showing 3 changed files with 5 additions and 5 deletions Side-by-side Diff
fs/coredump.c
... | ... | @@ -458,7 +458,7 @@ |
458 | 458 | return err; |
459 | 459 | } |
460 | 460 | |
461 | -void do_coredump(siginfo_t *siginfo, struct pt_regs *regs) | |
461 | +void do_coredump(siginfo_t *siginfo) | |
462 | 462 | { |
463 | 463 | struct core_state core_state; |
464 | 464 | struct core_name cn; |
... | ... | @@ -474,7 +474,7 @@ |
474 | 474 | static atomic_t core_dump_count = ATOMIC_INIT(0); |
475 | 475 | struct coredump_params cprm = { |
476 | 476 | .siginfo = siginfo, |
477 | - .regs = regs, | |
477 | + .regs = signal_pt_regs(), | |
478 | 478 | .limit = rlimit(RLIMIT_CORE), |
479 | 479 | /* |
480 | 480 | * We must use the same mm->flags while dumping core to avoid |
include/linux/coredump.h
... | ... | @@ -13,9 +13,9 @@ |
13 | 13 | extern int dump_write(struct file *file, const void *addr, int nr); |
14 | 14 | extern int dump_seek(struct file *file, loff_t off); |
15 | 15 | #ifdef CONFIG_COREDUMP |
16 | -extern void do_coredump(siginfo_t *siginfo, struct pt_regs *regs); | |
16 | +extern void do_coredump(siginfo_t *siginfo); | |
17 | 17 | #else |
18 | -static inline void do_coredump(siginfo_t *siginfo, struct pt_regs *regs) {} | |
18 | +static inline void do_coredump(siginfo_t *siginfo) {} | |
19 | 19 | #endif |
20 | 20 | |
21 | 21 | #endif /* _LINUX_COREDUMP_H */ |