fs/binfmt_em86.c: fix incompatible pointer type
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 2 Aug 2016 21:04:57 +0000 (14:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Aug 2016 23:35:15 +0000 (19:35 -0400)
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/1469525978-23359-1-git-send-email-wagi@monom.org
Signed-off-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/binfmt_em86.c

index 490538536cb44b20dde69074da93d2866e9ccd3e..dd2d3f0cd55d8dfae7dabde8d0dbaf664033702f 100644 (file)
@@ -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;