From: kbuild test robot <fengguang.wu@intel.com>
To: unlisted-recipients:; (no To-header on input)
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
Michal Marek <mmarek@suse.com>,
Daniel Wagner <daniel.wagner@bmw-carit.de>
Subject: fs/binfmt_em86.c:73:35: error: passing argument 2 of 'copy_strings_kernel' from incompatible pointer type
Date: Sun, 17 Jul 2016 07:12:07 +0800 [thread overview]
Message-ID: <201607170702.twsdEyUJ%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4155 bytes --]
Hi,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 47ef4ad2684d380dd6d596140fb79395115c3950
commit: ea8daa7b97842aab8507b5b5b1e3226cf2d514a6 kbuild: Add option to turn incompatible pointer check into error
date: 4 months ago
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout ea8daa7b97842aab8507b5b5b1e3226cf2d514a6
# save the attached .config to linux build tree
make.cross ARCH=alpha
All errors (new ones prefixed by >>):
fs/binfmt_em86.c: In function 'load_em86':
>> 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);
^
In file included from fs/binfmt_em86.c:14:0:
include/linux/binfmts.h:116:12: note: expected 'const char * const*' but argument is of type 'char **'
extern int copy_strings_kernel(int argc, const char *const *argv,
^
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);
^
In file included from fs/binfmt_em86.c:14:0:
include/linux/binfmts.h:116:12: note: expected 'const char * const*' but argument is of type 'char **'
extern int copy_strings_kernel(int argc, const char *const *argv,
^
fs/binfmt_em86.c:68:2: warning: ignoring return value of 'remove_arg_zero', declared with attribute warn_unused_result [-Wunused-result]
remove_arg_zero(bprm);
^
cc1: some warnings being treated as errors
vim +/copy_strings_kernel +73 fs/binfmt_em86.c
^1da177e Linus Torvalds 2005-04-16 57 i_name = EM86_I_NAME;
^1da177e Linus Torvalds 2005-04-16 58 i_arg = NULL; /* We reserve the right to add an arg later */
^1da177e Linus Torvalds 2005-04-16 59
^1da177e Linus Torvalds 2005-04-16 60 /*
^1da177e Linus Torvalds 2005-04-16 61 * Splice in (1) the interpreter's name for argv[0]
^1da177e Linus Torvalds 2005-04-16 62 * (2) (optional) argument to interpreter
^1da177e Linus Torvalds 2005-04-16 63 * (3) filename of emulated file (replace argv[0])
^1da177e Linus Torvalds 2005-04-16 64 *
^1da177e Linus Torvalds 2005-04-16 65 * This is done in reverse order, because of how the
^1da177e Linus Torvalds 2005-04-16 66 * user environment and arguments are stored.
^1da177e Linus Torvalds 2005-04-16 67 */
^1da177e Linus Torvalds 2005-04-16 68 remove_arg_zero(bprm);
^1da177e Linus Torvalds 2005-04-16 69 retval = copy_strings_kernel(1, &bprm->filename, bprm);
^1da177e Linus Torvalds 2005-04-16 70 if (retval < 0) return retval;
^1da177e Linus Torvalds 2005-04-16 71 bprm->argc++;
^1da177e Linus Torvalds 2005-04-16 72 if (i_arg) {
^1da177e Linus Torvalds 2005-04-16 @73 retval = copy_strings_kernel(1, &i_arg, bprm);
^1da177e Linus Torvalds 2005-04-16 74 if (retval < 0) return retval;
^1da177e Linus Torvalds 2005-04-16 75 bprm->argc++;
^1da177e Linus Torvalds 2005-04-16 76 }
^1da177e Linus Torvalds 2005-04-16 77 retval = copy_strings_kernel(1, &i_name, bprm);
^1da177e Linus Torvalds 2005-04-16 78 if (retval < 0) return retval;
^1da177e Linus Torvalds 2005-04-16 79 bprm->argc++;
^1da177e Linus Torvalds 2005-04-16 80
^1da177e Linus Torvalds 2005-04-16 81 /*
:::::: The code at line 73 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 45062 bytes --]
next reply other threads:[~2016-07-16 23:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-16 23:12 kbuild test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-07-24 2:12 fs/binfmt_em86.c:73:35: error: passing argument 2 of 'copy_strings_kernel' from incompatible pointer type kbuild test robot
2016-06-26 1:47 kbuild test robot
2016-06-05 1:54 kbuild test robot
2016-06-06 5:51 ` Daniel Wagner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201607170702.twsdEyUJ%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=daniel.wagner@bmw-carit.de \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).