From: Daisuke HATAYAMA Date: Mon, 4 Jan 2010 06:42:14 +0000 (+0900) Subject: binfmt_elf_fdpic: Fix build breakage introduced by coredump changes. X-Git-Tag: firefly_0821_release~9833^2~3485^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2f48912d1443a796f10c42c89cb386f0e3eca04d;p=firefly-linux-kernel-4.4.55.git binfmt_elf_fdpic: Fix build breakage introduced by coredump changes. Commit f6151dfea21496d43dbaba32cfcd9c9f404769bc introduces build breakage, so this patch fixes it together with some printk formatting cleanup. Signed-off-by: Daisuke HATAYAMA Signed-off-by: Paul Mundt --- diff --git a/fs/binfmt_elf_fdpic.c b/fs/binfmt_elf_fdpic.c index c25256a5c5b0..7dc85997e96c 100644 --- a/fs/binfmt_elf_fdpic.c +++ b/fs/binfmt_elf_fdpic.c @@ -1798,11 +1798,11 @@ static int elf_fdpic_core_dump(struct coredump_params *cprm) ELF_CORE_WRITE_EXTRA_DATA; #endif - if (file->f_pos != offset) { + if (cprm->file->f_pos != offset) { /* Sanity check */ printk(KERN_WARNING "elf_core_dump: file->f_pos (%lld) != offset (%lld)\n", - file->f_pos, offset); + cprm->file->f_pos, offset); } end_coredump: