do_coredump(): get rid of pt_regs argument
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 5 Nov 2012 18:11:26 +0000 (13:11 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 29 Nov 2012 05:01:25 +0000 (00:01 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/coredump.c
include/linux/coredump.h
kernel/signal.c

index ce47379bfa61cfecb7bc747d3fbc7031a65f3080..177493272a6158a3f5192ed3eb061d7cef2e9556 100644 (file)
@@ -458,7 +458,7 @@ static int umh_pipe_setup(struct subprocess_info *info, struct cred *new)
        return err;
 }
 
-void do_coredump(siginfo_t *siginfo, struct pt_regs *regs)
+void do_coredump(siginfo_t *siginfo)
 {
        struct core_state core_state;
        struct core_name cn;
@@ -474,7 +474,7 @@ void do_coredump(siginfo_t *siginfo, struct pt_regs *regs)
        static atomic_t core_dump_count = ATOMIC_INIT(0);
        struct coredump_params cprm = {
                .siginfo = siginfo,
-               .regs = regs,
+               .regs = signal_pt_regs(),
                .limit = rlimit(RLIMIT_CORE),
                /*
                 * We must use the same mm->flags while dumping core to avoid
index 1d7399314a8933eab0516daf5ff4bf7f87777d88..a98f1ca60407d574ee89980bde8029d8f1f73f78 100644 (file)
@@ -13,9 +13,9 @@
 extern int dump_write(struct file *file, const void *addr, int nr);
 extern int dump_seek(struct file *file, loff_t off);
 #ifdef CONFIG_COREDUMP
-extern void do_coredump(siginfo_t *siginfo, struct pt_regs *regs);
+extern void do_coredump(siginfo_t *siginfo);
 #else
-static inline void do_coredump(siginfo_t *siginfo, struct pt_regs *regs) {}
+static inline void do_coredump(siginfo_t *siginfo) {}
 #endif
 
 #endif /* _LINUX_COREDUMP_H */
index 2e3b5d57280868c2b248b900145cb432705d416e..e75e4bd2839bba251306bcfa7c1eb2e05afb944e 100644 (file)
@@ -2359,7 +2359,7 @@ relock:
                         * first and our do_group_exit call below will use
                         * that value and ignore the one we pass it.
                         */
-                       do_coredump(info, regs);
+                       do_coredump(info);
                }
 
                /*