diff options
author | Zhang Yanfei <zhangyanfei@cn.fujitsu.com> | 2013-02-21 19:44:20 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 20:22:26 -0500 |
commit | d3330cf08ccf9aef28a3e5740fd5cc7ac536db84 (patch) | |
tree | 86faeb4546b2805e3e9717b1a75702cfa2be2d4b /fs/binfmt_elf.c | |
parent | 37581c28e9e77f44a3124ebab99b98643bda1aa2 (diff) |
binfmt_elf: remove unused argument in fill_elf_header
In fill_elf_header(), elf->e_ident[EI_OSABI] is always set to ELF_OSABI,
so remove the unused argument 'osabi'.
Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r-- | fs/binfmt_elf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 49d0b43458b7..ff9dbc630efa 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c | |||
@@ -1249,7 +1249,7 @@ static int writenote(struct memelfnote *men, struct file *file, | |||
1249 | #undef DUMP_WRITE | 1249 | #undef DUMP_WRITE |
1250 | 1250 | ||
1251 | static void fill_elf_header(struct elfhdr *elf, int segs, | 1251 | static void fill_elf_header(struct elfhdr *elf, int segs, |
1252 | u16 machine, u32 flags, u8 osabi) | 1252 | u16 machine, u32 flags) |
1253 | { | 1253 | { |
1254 | memset(elf, 0, sizeof(*elf)); | 1254 | memset(elf, 0, sizeof(*elf)); |
1255 | 1255 | ||
@@ -1634,7 +1634,7 @@ static int fill_note_info(struct elfhdr *elf, int phdrs, | |||
1634 | * Initialize the ELF file header. | 1634 | * Initialize the ELF file header. |
1635 | */ | 1635 | */ |
1636 | fill_elf_header(elf, phdrs, | 1636 | fill_elf_header(elf, phdrs, |
1637 | view->e_machine, view->e_flags, view->ei_osabi); | 1637 | view->e_machine, view->e_flags); |
1638 | 1638 | ||
1639 | /* | 1639 | /* |
1640 | * Allocate a structure for each thread. | 1640 | * Allocate a structure for each thread. |
@@ -1874,7 +1874,7 @@ static int fill_note_info(struct elfhdr *elf, int phdrs, | |||
1874 | elf_core_copy_regs(&info->prstatus->pr_reg, regs); | 1874 | elf_core_copy_regs(&info->prstatus->pr_reg, regs); |
1875 | 1875 | ||
1876 | /* Set up header */ | 1876 | /* Set up header */ |
1877 | fill_elf_header(elf, phdrs, ELF_ARCH, ELF_CORE_EFLAGS, ELF_OSABI); | 1877 | fill_elf_header(elf, phdrs, ELF_ARCH, ELF_CORE_EFLAGS); |
1878 | 1878 | ||
1879 | /* | 1879 | /* |
1880 | * Set up the notes in similar form to SVR4 core dumps made | 1880 | * Set up the notes in similar form to SVR4 core dumps made |