Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1450501 > unrolled thread

[PATCH] binfmt_em86: Fix incompatible pointer type

Started byDaniel Wagner <wagi@monom.org>
First post2016-07-26 11:40 +0200
Last post2016-07-26 11:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] binfmt_em86: Fix incompatible pointer type Daniel Wagner <wagi@monom.org> - 2016-07-26 11:40 +0200

#1450501 — [PATCH] binfmt_em86: Fix incompatible pointer type

FromDaniel Wagner <wagi@monom.org>
Date2016-07-26 11:40 +0200
Subject[PATCH] binfmt_em86: Fix incompatible pointer type
Message-ID<rZ70d-f9-7@gated-at.bofh.it>
From: Daniel Wagner <daniel.wagner@bmw-carit.de>

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);
                                  ^
Signed-off-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
---
Hi,

Here is the same patch again. The 0day bot is nagging me that
I broke that and up to now it's still not fixed.

Andrew, are you willing to pick this one up?

cheers,
daniel

 fs/binfmt_em86.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/binfmt_em86.c b/fs/binfmt_em86.c
index 4905385..dd2d3f0 100644
--- a/fs/binfmt_em86.c
+++ b/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;
-- 
2.5.5

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web