switch elf_coredump_extra_notes_write() to dump_emit()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
e6c1baa9b5
commit
cdc3d5627d
6 changed files with 30 additions and 38 deletions
|
@ -39,13 +39,13 @@ extern Elf64_Dyn _DYNAMIC [];
|
|||
|
||||
/* Optional callbacks to write extra ELF notes. */
|
||||
struct file;
|
||||
struct coredump_params;
|
||||
|
||||
#ifndef ARCH_HAVE_EXTRA_ELF_NOTES
|
||||
static inline int elf_coredump_extra_notes_size(void) { return 0; }
|
||||
static inline int elf_coredump_extra_notes_write(struct file *file,
|
||||
loff_t *foffset) { return 0; }
|
||||
static inline int elf_coredump_extra_notes_write(struct coredump_params *cprm) { return 0; }
|
||||
#else
|
||||
extern int elf_coredump_extra_notes_size(void);
|
||||
extern int elf_coredump_extra_notes_write(struct file *file, loff_t *foffset);
|
||||
extern int elf_coredump_extra_notes_write(struct coredump_params *cprm);
|
||||
#endif
|
||||
#endif /* _LINUX_ELF_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue