linux-user: Remove regs parameter load_elf_binary and load_flt_binary
PATCH 1/1 linux-user: Remove regs parameter load_elf_binary and load_flt_binary
The regs parameter is not used anywhere, so remove it.
--- linux-user/elfload.c | 3 +-- linux-user/flatload.c | 3 +-- linux-user/linuxload.c | 4 ++-- linux-user/qemu.h | 6 ++---- 4 files changed, 6 insertions(+), 10 deletions(-)
linux-user/elfload.c +1 -2
@@ -1998,8 +1998,7 @@ give_up:free (syms); } -int load_elf_binary (struct linux_binprm * bprm,struct target_pt_regs * regs, -struct image_info * info) +int load_elf_binary (struct linux_binprm *bprm,struct image_info *info) {struct image_info interp_info;struct elfhdr elf_ex;
linux-user/flatload.c +1 -2
@@ -704,8 +704,7 @@ static int load_flat_shared_library(int id, struct lib_info *libs)#endif /* CONFIG_BINFMT_SHARED_FLAT */ -int load_flt_binary (struct linux_binprm * bprm,struct target_pt_regs * regs, -struct image_info * info) +int load_flt_binary (struct linux_binprm *bprm,struct image_info *info) {struct lib_info libinfo[MAX_SHARED_LIBS ];abi_ulong p = bprm->p;
linux-user/linuxload.c +2 -2
@@ -154,13 +154,13 @@ int loader_exec(int fdexec, const char *filename, char **argv, char **envp, && bprm->buf[1] == 'E' && bprm->buf[2] == 'L' && bprm->buf[3] == 'F') { - retval =load_elf_binary (bprm, regs, infop); + retval =load_elf_binary (bprm, infop);#if defined(TARGET_HAS_BFLT ) } else if (bprm->buf[0] == 'b' && bprm->buf[1] == 'F' && bprm->buf[2] == 'L' && bprm->buf[3] == 'T') { - retval =load_flt_binary (bprm,regs,infop); + retval =load_flt_binary (bprm, infop);#endif } else {return -ENOEXEC ;
linux-user/qemu.h +2 -4
@@ -178,10 +178,8 @@ int loader_exec(int fdexec, const char *filename, char **argv, char **envp, struct target_pt_regs * regs, struct image_info *infop, struct linux_binprm *); -int load_elf_binary (struct linux_binprm * bprm,struct target_pt_regs * regs, -struct image_info * info); -int load_flt_binary (struct linux_binprm * bprm,struct target_pt_regs * regs, -struct image_info * info); +int load_elf_binary (struct linux_binprm *bprm,struct image_info *info); +int load_flt_binary (struct linux_binprm *bprm,struct image_info *info);abi_long memcpy_to_target (abi_ulong dest,const void *src,unsigned long len);
Signature · 1 line
1.8.1.4
Quoted 3 lines · Will Newton
The regs parameter is not used anywhere, so remove it.
Signed-off-by Will Newton <[email protected]>
Signature · 3 lines
---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
Quoted 3 lines · Will Newton
The regs parameter is not used anywhere, so remove it.
Signed-off-by Will Newton <[email protected]>
Signature · 3 lines
---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
"... of load_elf_binary() and load_flt_binary()" - Riku can you fix pls?
Am 09.01.2014 10:10, schrieb Will Newton:
Quoted 9 lines
The regs parameter is not used anywhere, so remove it.
Signed-off-by Will Newton <[email protected]>--- linux-user/elfload.c | 3 +-- linux-user/flatload.c | 3 +-- linux-user/linuxload.c | 4 ++-- linux-user/qemu.h | 6 ++---- 4 files changed, 6 insertions(+), 10 deletions(-)
Please CC your colleague as the maintainer, scripts/get_maintainer.pl --nogit-fallback can help automate that.
Also you probably wanted [email protected], too. ;)
That said, patch contents look fine, without knowing the history,
Cheers,
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Hi,
Quoted 1 line · Andreas Färber
"... of
load_elf_binary()andload_flt_binary()" - Riku can you fix pls?
Changed and added to queque.
Riku
Quoted 25 lines
Am 09.01.2014 10:10, schrieb Will Newton:
Quoted 9 lines
The regs parameter is not used anywhere, so remove it.
Signed-off-by Will Newton <[email protected]>--- linux-user/elfload.c | 3 +-- linux-user/flatload.c | 3 +-- linux-user/linuxload.c | 4 ++-- linux-user/qemu.h | 6 ++---- 4 files changed, 6 insertions(+), 10 deletions(-)Please CC your colleague as the maintainer,
scripts/get_maintainer.pl--nogit-fallback can help automate that.
Also you probably wanted [email protected], too. ;)That said, patch contents look fine, without knowing the history,
Reviewed-by Andreas Färber <[email protected]>Cheers,
AndreasSignature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg