Skip to content

Commit a310dcb

Browse files
Daniel Wagnertorvalds
authored andcommitted
fs/binfmt_em86.c: fix incompatible pointer type
Since the -Wincompatible-pointer-types is reported as error, alpha doesn't build anymore. Let's fix it in a minimal way. fs/binfmt_em86.c:73:35: error: passing argument 2 of `copy_strings_kernel' from incompatible pointer type [-Werror=incompatible-pointer-types] retval = copy_strings_kernel(1, &i_arg, bprm); ^ ^ fs/binfmt_em86.c:77:34: error: passing argument 2 of `copy_strings_kernel' from incompatible pointer type [-Werror=incompatible-pointer-types] retval = copy_strings_kernel(1, &i_name, bprm); ^ Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Daniel Wagner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent ba093a6 commit a310dcb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/binfmt_em86.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424

2525
static int load_em86(struct linux_binprm *bprm)
2626
{
27-
char *interp, *i_name, *i_arg;
27+
const char *i_name, *i_arg;
28+
char *interp;
2829
struct file * file;
2930
int retval;
3031
struct elfhdr elf_ex;

0 commit comments

Comments
 (0)