linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Al Viro <viro@zeniv.linux.org.uk>
Cc: kbuild-all@01.org, linux-fsdevel@vger.kernel.org
Subject: [vfs:work.aio 4/4] fs/aio.c:1893:36: error: 'iocbpp' undeclared; did you mean 'iocb'?
Date: Mon, 28 May 2018 07:04:58 +0800	[thread overview]
Message-ID: <201805280756.Lizjo1TG%fengguang.wu@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3915 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.aio
head:   d8f1e6bce1b9ae7d6ebd0e269106476dd9564a0b
commit: d8f1e6bce1b9ae7d6ebd0e269106476dd9564a0b [4/4] aio: fold do_io_submit() into callers
config: x86_64-randconfig-x003-201821 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
        git checkout d8f1e6bce1b9ae7d6ebd0e269106476dd9564a0b
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/kernel.h:10:0,
                    from fs/aio.c:14:
   fs/aio.c: In function '__do_compat_sys_io_submit':
>> fs/aio.c:1893:36: error: 'iocbpp' undeclared (first use in this function); did you mean 'iocb'?
      if (unlikely(get_user(user_iocb, iocbpp + i))) {
                                       ^
   include/linux/compiler.h:77:42: note: in definition of macro 'unlikely'
    # define unlikely(x) __builtin_expect(!!(x), 0)
                                             ^
>> arch/x86/include/asm/uaccess.h:174:11: note: in expansion of macro '__inttype'
     register __inttype(*(ptr)) __val_gu asm("%"_ASM_DX);  \
              ^~~~~~~~~
>> fs/aio.c:1893:16: note: in expansion of macro 'get_user'
      if (unlikely(get_user(user_iocb, iocbpp + i))) {
                   ^~~~~~~~
   fs/aio.c:1893:36: note: each undeclared identifier is reported only once for each function it appears in
      if (unlikely(get_user(user_iocb, iocbpp + i))) {
                                       ^
   include/linux/compiler.h:77:42: note: in definition of macro 'unlikely'
    # define unlikely(x) __builtin_expect(!!(x), 0)
                                             ^
>> arch/x86/include/asm/uaccess.h:174:11: note: in expansion of macro '__inttype'
     register __inttype(*(ptr)) __val_gu asm("%"_ASM_DX);  \
              ^~~~~~~~~
>> fs/aio.c:1893:16: note: in expansion of macro 'get_user'
      if (unlikely(get_user(user_iocb, iocbpp + i))) {
                   ^~~~~~~~
>> arch/x86/include/asm/uaccess.h:138:12: error: first argument to '__builtin_choose_expr' not a constant
    __typeof__(__builtin_choose_expr(sizeof(x) > sizeof(0UL), 0ULL, 0UL))
               ^
   include/linux/compiler.h:77:42: note: in definition of macro 'unlikely'
    # define unlikely(x) __builtin_expect(!!(x), 0)
                                             ^
>> arch/x86/include/asm/uaccess.h:174:11: note: in expansion of macro '__inttype'
     register __inttype(*(ptr)) __val_gu asm("%"_ASM_DX);  \
              ^~~~~~~~~
>> fs/aio.c:1893:16: note: in expansion of macro 'get_user'
      if (unlikely(get_user(user_iocb, iocbpp + i))) {
                   ^~~~~~~~

vim +1893 fs/aio.c

  1868	
  1869	COMPAT_SYSCALL_DEFINE3(io_submit, compat_aio_context_t, ctx_id,
  1870			       int, nr, compat_uptr_t __user *, iocb)
  1871	{
  1872		struct kioctx *ctx;
  1873		long ret = 0;
  1874		int i = 0;
  1875		struct blk_plug plug;
  1876	
  1877		if (unlikely(nr < 0))
  1878			return -EINVAL;
  1879	
  1880		ctx = lookup_ioctx(ctx_id);
  1881		if (unlikely(!ctx)) {
  1882			pr_debug("EINVAL: invalid context id\n");
  1883			return -EINVAL;
  1884		}
  1885	
  1886		if (nr > ctx->nr_events)
  1887			nr = ctx->nr_events;
  1888	
  1889		blk_start_plug(&plug);
  1890		for (i = 0; i < nr; i++) {
  1891			compat_uptr_t user_iocb;
  1892	
> 1893			if (unlikely(get_user(user_iocb, iocbpp + i))) {
  1894				ret = -EFAULT;
  1895				break;
  1896			}
  1897	
  1898			ret = io_submit_one(ctx, compat_ptr(user_iocb), true);
  1899			if (ret)
  1900				break;
  1901		}
  1902		blk_finish_plug(&plug);
  1903	
  1904		percpu_ref_put(&ctx->users);
  1905		return i ? i : ret;
  1906	}
  1907	#endif
  1908	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28027 bytes --]

             reply	other threads:[~2018-05-27 23:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-27 23:04 kbuild test robot [this message]
2018-05-27 23:12 ` Al Viro

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=201805280756.Lizjo1TG%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    --subject='Re: [vfs:work.aio 4/4] fs/aio.c:1893:36: error: '\''iocbpp'\'' undeclared; did you mean '\''iocb'\''?' \
    /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

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).