Skip to contentSkip to conversation

fs/binfmt_em86.c: fix incompatible pointer type

PATCH New [email protected] 1 participant 1 message Aug 2, 2016

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

PATCH 59/111 fs/binfmt_em86.c: fix incompatible pointer type

From: Daniel Wagner <[email protected]>
Subject: 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);
                                  ^

---

 fs/binfmt_em86.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/binfmt_em86.c renamed from fs/binfmt_em86.c~binfmt_em86-fix-incompatible-pointer-type +2 -1
diff -puN fs/binfmt_em86.c~binfmt_em86-fix-incompatible-pointer-type fs/binfmt_em86.c
@@ -24,7 +24,8 @@
 
 static int load_em86(struct linux_binprm *bprm)
 {
-	char *interp, *i_name, *i_arg;
+	const char *i_name, *i_arg;
+	char *interp;
 	struct file * file;
 	int retval;
 	struct elfhdr	elf_ex;

_