Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
541880d9
Commit
541880d9
authored
Nov 05, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do_coredump(): get rid of pt_regs argument
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
4aaefee5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
fs/coredump.c
fs/coredump.c
+2
-2
include/linux/coredump.h
include/linux/coredump.h
+2
-2
kernel/signal.c
kernel/signal.c
+1
-1
No files found.
fs/coredump.c
View file @
541880d9
...
...
@@ -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
...
...
include/linux/coredump.h
View file @
541880d9
...
...
@@ -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 */
kernel/signal.c
View file @
541880d9
...
...
@@ -2359,7 +2359,7 @@ int get_signal_to_deliver(siginfo_t *info, struct k_sigaction *return_ka,
* 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
);
}
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment