diff options
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r-- | fs/binfmt_elf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 5109dbff93bf..dfd8cfb7fb5d 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c | |||
@@ -1263,7 +1263,7 @@ static void fill_elf_header(struct elfhdr *elf, int segs) | |||
1263 | return; | 1263 | return; |
1264 | } | 1264 | } |
1265 | 1265 | ||
1266 | static void fill_elf_note_phdr(struct elf_phdr *phdr, int sz, off_t offset) | 1266 | static void fill_elf_note_phdr(struct elf_phdr *phdr, int sz, loff_t offset) |
1267 | { | 1267 | { |
1268 | phdr->p_type = PT_NOTE; | 1268 | phdr->p_type = PT_NOTE; |
1269 | phdr->p_offset = offset; | 1269 | phdr->p_offset = offset; |
@@ -1429,7 +1429,7 @@ static int elf_core_dump(long signr, struct pt_regs *regs, struct file *file) | |||
1429 | int i; | 1429 | int i; |
1430 | struct vm_area_struct *vma; | 1430 | struct vm_area_struct *vma; |
1431 | struct elfhdr *elf = NULL; | 1431 | struct elfhdr *elf = NULL; |
1432 | off_t offset = 0, dataoff; | 1432 | loff_t offset = 0, dataoff; |
1433 | unsigned long limit = current->signal->rlim[RLIMIT_CORE].rlim_cur; | 1433 | unsigned long limit = current->signal->rlim[RLIMIT_CORE].rlim_cur; |
1434 | int numnote; | 1434 | int numnote; |
1435 | struct memelfnote *notes = NULL; | 1435 | struct memelfnote *notes = NULL; |
@@ -1662,11 +1662,11 @@ static int elf_core_dump(long signr, struct pt_regs *regs, struct file *file) | |||
1662 | ELF_CORE_WRITE_EXTRA_DATA; | 1662 | ELF_CORE_WRITE_EXTRA_DATA; |
1663 | #endif | 1663 | #endif |
1664 | 1664 | ||
1665 | if ((off_t)file->f_pos != offset) { | 1665 | if (file->f_pos != offset) { |
1666 | /* Sanity check */ | 1666 | /* Sanity check */ |
1667 | printk(KERN_WARNING | 1667 | printk(KERN_WARNING |
1668 | "elf_core_dump: file->f_pos (%ld) != offset (%ld)\n", | 1668 | "elf_core_dump: file->f_pos (%Ld) != offset (%Ld)\n", |
1669 | (off_t)file->f_pos, offset); | 1669 | file->f_pos, offset); |
1670 | } | 1670 | } |
1671 | 1671 | ||
1672 | end_coredump: | 1672 | end_coredump: |