Skip to contentSkip to conversation

elf_fdpic_core_dump(): fix build break in 2.6.33-rc1

PATCH In review Daisuke HATAYAMA 3 participants 3 messages Dec 21, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 elf_fdpic_core_dump(): fix build break in 2.6.33-rc1

The commit f6151dfea21496d43dbaba32cfcd9c9f404769bc causes build break, so this patch fixes it together with the correction for printk format.

Thanks.

---
 fs/binfmt_elf_fdpic.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
fs/binfmt_elf_fdpic.c +3 -3
index c25256a..b0f2732 100644
@@ -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);
+		       "elf_fdpic_core_dump: cprm->file->f_pos (%lld) != offset (%lld)\n",
+		       cprm->file->f_pos, offset);
 	}
 
 end_coredump:
Signature · 1 line
1.6.5.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Daisuke HATAYAMA

The commit f6151dfea21496d43dbaba32cfcd9c9f404769bc causes build break, so this patch fixes it together with the correction for printk format.

Thanks.

Thanks for fixing that! looks good to me.

Quoted 23 lines
---
 fs/binfmt_elf_fdpic.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
fs/binfmt_elf_fdpic.c +3 -3
index c25256a..b0f2732 100644
@@ -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);
+		       "elf_fdpic_core_dump: cprm->file->f_pos (%lld) != offset (%lld)\n",
+		       cprm->file->f_pos, offset);
 	}
 
 end_coredump:
Signature · 7 lines
Masami Hiramatsu

Software Engineer
Hitachi Computer Products (America), Inc.
Software Solutions Division

e-mail: [email protected]