summaryrefslogtreecommitdiffstats
path: root/kernel/elfcore.c
diff options
context:
space:
mode:
authorAl Viro2013-10-05 23:22:57 +0200
committerAl Viro2013-11-09 06:16:23 +0100
commit506f21c556c747bb07b893f146220ec45cda381b (patch)
tree314bda008996a302a73779d522c349eb174dc8b9 /kernel/elfcore.c
parentnew helper: dump_emit() (diff)
downloadkernel-qcow2-linux-506f21c556c747bb07b893f146220ec45cda381b.tar.gz
kernel-qcow2-linux-506f21c556c747bb07b893f146220ec45cda381b.tar.xz
kernel-qcow2-linux-506f21c556c747bb07b893f146220ec45cda381b.zip
switch elf_core_write_extra_phdrs() to dump_emit()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/elfcore.c')
-rw-r--r--kernel/elfcore.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/kernel/elfcore.c b/kernel/elfcore.c
index ff915efef66d..e556751d15d9 100644
--- a/kernel/elfcore.c
+++ b/kernel/elfcore.c
@@ -1,23 +1,19 @@
#include <linux/elf.h>
#include <linux/fs.h>
#include <linux/mm.h>
-
-#include <asm/elf.h>
-
+#include <linux/binfmts.h>
Elf_Half __weak elf_core_extra_phdrs(void)
{
return 0;
}
-int __weak elf_core_write_extra_phdrs(struct file *file, loff_t offset, size_t *size,
- unsigned long limit)
+int __weak elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset)
{
return 1;
}
-int __weak elf_core_write_extra_data(struct file *file, size_t *size,
- unsigned long limit)
+int __weak elf_core_write_extra_data(struct coredump_params *cprm)
{
return 1;
}