diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-11-05 13:11:26 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-11-29 00:01:25 -0500 |
commit | 541880d9a2c7871f6370071d55aa6662d329c51e (patch) | |
tree | bc484cbeba1872ef2090c8738a942390a02d4dff | |
parent | 4aaefee589f97bb30062bbeeb793bbbf7107a9a7 (diff) |
do_coredump(): get rid of pt_regs argument
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/coredump.c | 4 | ||||
-rw-r--r-- | include/linux/coredump.h | 4 | ||||
-rw-r--r-- | kernel/signal.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/fs/coredump.c b/fs/coredump.c index ce47379bfa61..177493272a61 100644 --- a/fs/coredump.c +++ b/fs/coredump.c | |||
@@ -458,7 +458,7 @@ static int umh_pipe_setup(struct subprocess_info *info, struct cred *new) | |||
458 | return err; | 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 | struct core_state core_state; | 463 | struct core_state core_state; |
464 | struct core_name cn; | 464 | struct core_name cn; |
@@ -474,7 +474,7 @@ void do_coredump(siginfo_t *siginfo, struct pt_regs *regs) | |||
474 | static atomic_t core_dump_count = ATOMIC_INIT(0); | 474 | static atomic_t core_dump_count = ATOMIC_INIT(0); |
475 | struct coredump_params cprm = { | 475 | struct coredump_params cprm = { |
476 | .siginfo = siginfo, | 476 | .siginfo = siginfo, |
477 | .regs = regs, | 477 | .regs = signal_pt_regs(), |
478 | .limit = rlimit(RLIMIT_CORE), | 478 | .limit = rlimit(RLIMIT_CORE), |
479 | /* | 479 | /* |
480 | * We must use the same mm->flags while dumping core to avoid | 480 | * We must use the same mm->flags while dumping core to avoid |
diff --git a/include/linux/coredump.h b/include/linux/coredump.h index 1d7399314a89..a98f1ca60407 100644 --- a/include/linux/coredump.h +++ b/include/linux/coredump.h | |||
@@ -13,9 +13,9 @@ | |||
13 | extern int dump_write(struct file *file, const void *addr, int nr); | 13 | extern int dump_write(struct file *file, const void *addr, int nr); |
14 | extern int dump_seek(struct file *file, loff_t off); | 14 | extern int dump_seek(struct file *file, loff_t off); |
15 | #ifdef CONFIG_COREDUMP | 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 | #else | 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 | #endif | 19 | #endif |
20 | 20 | ||
21 | #endif /* _LINUX_COREDUMP_H */ | 21 | #endif /* _LINUX_COREDUMP_H */ |
diff --git a/kernel/signal.c b/kernel/signal.c index 2e3b5d572808..e75e4bd2839b 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
@@ -2359,7 +2359,7 @@ relock: | |||
2359 | * first and our do_group_exit call below will use | 2359 | * first and our do_group_exit call below will use |
2360 | * that value and ignore the one we pass it. | 2360 | * that value and ignore the one we pass it. |
2361 | */ | 2361 | */ |
2362 | do_coredump(info, regs); | 2362 | do_coredump(info); |
2363 | } | 2363 | } |
2364 | 2364 | ||
2365 | /* | 2365 | /* |