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
nexedi
linux
Commits
ec57941e
Commit
ec57941e
authored
Oct 13, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
constify do_coredump() argument
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
ce395960
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
fs/binfmt_elf.c
fs/binfmt_elf.c
+2
-2
fs/coredump.c
fs/coredump.c
+1
-1
include/linux/binfmts.h
include/linux/binfmts.h
+1
-1
include/linux/coredump.h
include/linux/coredump.h
+2
-2
No files found.
fs/binfmt_elf.c
View file @
ec57941e
...
...
@@ -1581,7 +1581,7 @@ static int fill_thread_core_info(struct elf_thread_core_info *t,
static
int
fill_note_info
(
struct
elfhdr
*
elf
,
int
phdrs
,
struct
elf_note_info
*
info
,
siginfo_t
*
siginfo
,
struct
pt_regs
*
regs
)
const
siginfo_t
*
siginfo
,
struct
pt_regs
*
regs
)
{
struct
task_struct
*
dump_task
=
current
;
const
struct
user_regset_view
*
view
=
task_user_regset_view
(
dump_task
);
...
...
@@ -1830,7 +1830,7 @@ static int elf_note_info_init(struct elf_note_info *info)
static
int
fill_note_info
(
struct
elfhdr
*
elf
,
int
phdrs
,
struct
elf_note_info
*
info
,
siginfo_t
*
siginfo
,
struct
pt_regs
*
regs
)
const
siginfo_t
*
siginfo
,
struct
pt_regs
*
regs
)
{
struct
list_head
*
t
;
...
...
fs/coredump.c
View file @
ec57941e
...
...
@@ -485,7 +485,7 @@ static int umh_pipe_setup(struct subprocess_info *info, struct cred *new)
return
err
;
}
void
do_coredump
(
siginfo_t
*
siginfo
)
void
do_coredump
(
const
siginfo_t
*
siginfo
)
{
struct
core_state
core_state
;
struct
core_name
cn
;
...
...
include/linux/binfmts.h
View file @
ec57941e
...
...
@@ -56,7 +56,7 @@ struct linux_binprm {
/* Function parameter for binfmt->coredump */
struct
coredump_params
{
siginfo_t
*
siginfo
;
const
siginfo_t
*
siginfo
;
struct
pt_regs
*
regs
;
struct
file
*
file
;
unsigned
long
limit
;
...
...
include/linux/coredump.h
View file @
ec57941e
...
...
@@ -15,9 +15,9 @@ extern int dump_skip(struct coredump_params *cprm, size_t nr);
extern
int
dump_emit
(
struct
coredump_params
*
cprm
,
const
void
*
addr
,
int
nr
);
extern
int
dump_align
(
struct
coredump_params
*
cprm
,
int
align
);
#ifdef CONFIG_COREDUMP
extern
void
do_coredump
(
siginfo_t
*
siginfo
);
extern
void
do_coredump
(
const
siginfo_t
*
siginfo
);
#else
static
inline
void
do_coredump
(
siginfo_t
*
siginfo
)
{}
static
inline
void
do_coredump
(
const
siginfo_t
*
siginfo
)
{}
#endif
#endif
/* _LINUX_COREDUMP_H */
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