All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org
Subject: [axboe-block:nvme-passthru-wip.2 4/10] fs/io_uring.c:11271:2: error: call to __compiletime_assert_764 declared with 'error' attribute: BUILD_BUG_ON failed: offsetof(struct io_uring_cmd_sqe, user_data) != sqe_offsets[1].user_data
Date: Tue, 21 Dec 2021 04:57:04 +0800	[thread overview]
Message-ID: <202112210447.xuPrVLM2-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git nvme-passthru-wip.2
head:   edab2611e228dc05e995d3e2e4d25cb9e0989c75
commit: 278755c32b7fd62a8e82a1229c819ed2fcd85730 [4/10] io_uring: add infrastructure around io_uring_cmd_sqe
config: mips-buildonly-randconfig-r001-20211220 (https://download.01.org/0day-ci/archive/20211221/202112210447.xuPrVLM2-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 555eacf75f21cd1dfc6363d73ad187b730349543)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/commit/?id=278755c32b7fd62a8e82a1229c819ed2fcd85730
        git remote add axboe-block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
        git fetch --no-tags axboe-block nvme-passthru-wip.2
        git checkout 278755c32b7fd62a8e82a1229c819ed2fcd85730
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> fs/io_uring.c:11271:2: error: call to __compiletime_assert_764 declared with 'error' attribute: BUILD_BUG_ON failed: offsetof(struct io_uring_cmd_sqe, user_data) != sqe_offsets[1].user_data
           BUILD_BUG_SQEC_ELEM(sqe_offsets[1].user_data,   __u64,  user_data);
           ^
   fs/io_uring.c:11268:2: note: expanded from macro 'BUILD_BUG_SQEC_ELEM'
           __BUILD_BUG_VERIFY_ELEMENT(struct io_uring_cmd_sqe, eoffset, etype, ename)
           ^
   fs/io_uring.c:11228:2: note: expanded from macro '__BUILD_BUG_VERIFY_ELEMENT'
           BUILD_BUG_ON(offsetof(stype, ename) != eoffset); \
           ^
   include/linux/build_bug.h:50:2: note: expanded from macro 'BUILD_BUG_ON'
           BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
           ^
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler_types.h:323:2: note: expanded from macro '_compiletime_assert'
           __compiletime_assert(condition, msg, prefix, suffix)
           ^
   include/linux/compiler_types.h:316:4: note: expanded from macro '__compiletime_assert'
                           prefix ## suffix();                             \
                           ^
   <scratch space>:13:1: note: expanded from here
   __compiletime_assert_764
   ^
>> fs/io_uring.c:11272:2: error: call to __compiletime_assert_766 declared with 'error' attribute: BUILD_BUG_ON failed: offsetof(struct io_uring_cmd_sqe, personality) != sqe_offsets[1].personality
           BUILD_BUG_SQEC_ELEM(sqe_offsets[1].personality, __u16,  personality);
           ^
   fs/io_uring.c:11268:2: note: expanded from macro 'BUILD_BUG_SQEC_ELEM'
           __BUILD_BUG_VERIFY_ELEMENT(struct io_uring_cmd_sqe, eoffset, etype, ename)
           ^
   fs/io_uring.c:11228:2: note: expanded from macro '__BUILD_BUG_VERIFY_ELEMENT'
           BUILD_BUG_ON(offsetof(stype, ename) != eoffset); \
           ^
   include/linux/build_bug.h:50:2: note: expanded from macro 'BUILD_BUG_ON'
           BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
           ^
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler_types.h:323:2: note: expanded from macro '_compiletime_assert'
           __compiletime_assert(condition, msg, prefix, suffix)
           ^
   include/linux/compiler_types.h:316:4: note: expanded from macro '__compiletime_assert'
                           prefix ## suffix();                             \
                           ^
   <scratch space>:21:1: note: expanded from here
   __compiletime_assert_766
   ^
   2 errors generated.


vim +/error +11271 fs/io_uring.c

 11231	
 11232	#define BUILD_BUG_SQE_ELEM(eoffset, etype, ename) \
 11233		__BUILD_BUG_VERIFY_ELEMENT(struct io_uring_sqe, eoffset, etype, ename)
 11234		BUILD_BUG_ON(sizeof(struct io_uring_sqe) != 64);
 11235		BUILD_BUG_ON(sizeof(struct io_uring_cmd_sqe) != 64);
 11236		BUILD_BUG_SQE_ELEM(0,  __u8,   hdr.opcode);
 11237		BUILD_BUG_SQE_ELEM(1,  __u8,   hdr.flags);
 11238		BUILD_BUG_SQE_ELEM(2,  __u16,  hdr.ioprio);
 11239		BUILD_BUG_SQE_ELEM(4,  __s32,  hdr.fd);
 11240		BUILD_BUG_SQE_ELEM(8,  __u64,  off);
 11241		BUILD_BUG_SQE_ELEM(8,  __u64,  addr2);
 11242		BUILD_BUG_SQE_ELEM(16, __u64,  addr);
 11243		BUILD_BUG_SQE_ELEM(16, __u64,  splice_off_in);
 11244		BUILD_BUG_SQE_ELEM(24, __u32,  len);
 11245		BUILD_BUG_SQE_ELEM(28,     __kernel_rwf_t, rw_flags);
 11246		BUILD_BUG_SQE_ELEM(28, /* compat */   int, rw_flags);
 11247		BUILD_BUG_SQE_ELEM(28, /* compat */ __u32, rw_flags);
 11248		BUILD_BUG_SQE_ELEM(28, __u32,  fsync_flags);
 11249		BUILD_BUG_SQE_ELEM(28, /* compat */ __u16,  poll_events);
 11250		BUILD_BUG_SQE_ELEM(28, __u32,  poll32_events);
 11251		BUILD_BUG_SQE_ELEM(28, __u32,  sync_range_flags);
 11252		BUILD_BUG_SQE_ELEM(28, __u32,  msg_flags);
 11253		BUILD_BUG_SQE_ELEM(28, __u32,  timeout_flags);
 11254		BUILD_BUG_SQE_ELEM(28, __u32,  accept_flags);
 11255		BUILD_BUG_SQE_ELEM(28, __u32,  cancel_flags);
 11256		BUILD_BUG_SQE_ELEM(28, __u32,  open_flags);
 11257		BUILD_BUG_SQE_ELEM(28, __u32,  statx_flags);
 11258		BUILD_BUG_SQE_ELEM(28, __u32,  fadvise_advice);
 11259		BUILD_BUG_SQE_ELEM(28, __u32,  splice_flags);
 11260		BUILD_BUG_SQE_ELEM(32, __u64,  user_data);
 11261		BUILD_BUG_SQE_ELEM(40, __u16,  buf_index);
 11262		BUILD_BUG_SQE_ELEM(40, __u16,  buf_group);
 11263		BUILD_BUG_SQE_ELEM(42, __u16,  personality);
 11264		BUILD_BUG_SQE_ELEM(44, __s32,  splice_fd_in);
 11265		BUILD_BUG_SQE_ELEM(44, __u32,  file_index);
 11266	
 11267		#define BUILD_BUG_SQEC_ELEM(eoffset, etype, ename) \
 11268		__BUILD_BUG_VERIFY_ELEMENT(struct io_uring_cmd_sqe, eoffset, etype, ename)
 11269		BUILD_BUG_SQEC_ELEM(8,				__u64,	user_data);
 11270		BUILD_BUG_SQEC_ELEM(18,				__u16,	personality);
 11271		BUILD_BUG_SQEC_ELEM(sqe_offsets[1].user_data,	__u64,	user_data);
 11272		BUILD_BUG_SQEC_ELEM(sqe_offsets[1].personality,	__u16,	personality);

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [axboe-block:nvme-passthru-wip.2 4/10] fs/io_uring.c:11271:2: error: call to __compiletime_assert_764 declared with 'error' attribute: BUILD_BUG_ON failed: offsetof(struct io_uring_cmd_sqe, user_data) != sqe_offsets[1].user_data
Date: Tue, 21 Dec 2021 04:57:04 +0800	[thread overview]
Message-ID: <202112210447.xuPrVLM2-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git nvme-passthru-wip.2
head:   edab2611e228dc05e995d3e2e4d25cb9e0989c75
commit: 278755c32b7fd62a8e82a1229c819ed2fcd85730 [4/10] io_uring: add infrastructure around io_uring_cmd_sqe
config: mips-buildonly-randconfig-r001-20211220 (https://download.01.org/0day-ci/archive/20211221/202112210447.xuPrVLM2-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 555eacf75f21cd1dfc6363d73ad187b730349543)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/commit/?id=278755c32b7fd62a8e82a1229c819ed2fcd85730
        git remote add axboe-block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
        git fetch --no-tags axboe-block nvme-passthru-wip.2
        git checkout 278755c32b7fd62a8e82a1229c819ed2fcd85730
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> fs/io_uring.c:11271:2: error: call to __compiletime_assert_764 declared with 'error' attribute: BUILD_BUG_ON failed: offsetof(struct io_uring_cmd_sqe, user_data) != sqe_offsets[1].user_data
           BUILD_BUG_SQEC_ELEM(sqe_offsets[1].user_data,   __u64,  user_data);
           ^
   fs/io_uring.c:11268:2: note: expanded from macro 'BUILD_BUG_SQEC_ELEM'
           __BUILD_BUG_VERIFY_ELEMENT(struct io_uring_cmd_sqe, eoffset, etype, ename)
           ^
   fs/io_uring.c:11228:2: note: expanded from macro '__BUILD_BUG_VERIFY_ELEMENT'
           BUILD_BUG_ON(offsetof(stype, ename) != eoffset); \
           ^
   include/linux/build_bug.h:50:2: note: expanded from macro 'BUILD_BUG_ON'
           BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
           ^
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler_types.h:323:2: note: expanded from macro '_compiletime_assert'
           __compiletime_assert(condition, msg, prefix, suffix)
           ^
   include/linux/compiler_types.h:316:4: note: expanded from macro '__compiletime_assert'
                           prefix ## suffix();                             \
                           ^
   <scratch space>:13:1: note: expanded from here
   __compiletime_assert_764
   ^
>> fs/io_uring.c:11272:2: error: call to __compiletime_assert_766 declared with 'error' attribute: BUILD_BUG_ON failed: offsetof(struct io_uring_cmd_sqe, personality) != sqe_offsets[1].personality
           BUILD_BUG_SQEC_ELEM(sqe_offsets[1].personality, __u16,  personality);
           ^
   fs/io_uring.c:11268:2: note: expanded from macro 'BUILD_BUG_SQEC_ELEM'
           __BUILD_BUG_VERIFY_ELEMENT(struct io_uring_cmd_sqe, eoffset, etype, ename)
           ^
   fs/io_uring.c:11228:2: note: expanded from macro '__BUILD_BUG_VERIFY_ELEMENT'
           BUILD_BUG_ON(offsetof(stype, ename) != eoffset); \
           ^
   include/linux/build_bug.h:50:2: note: expanded from macro 'BUILD_BUG_ON'
           BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
           ^
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler_types.h:323:2: note: expanded from macro '_compiletime_assert'
           __compiletime_assert(condition, msg, prefix, suffix)
           ^
   include/linux/compiler_types.h:316:4: note: expanded from macro '__compiletime_assert'
                           prefix ## suffix();                             \
                           ^
   <scratch space>:21:1: note: expanded from here
   __compiletime_assert_766
   ^
   2 errors generated.


vim +/error +11271 fs/io_uring.c

 11231	
 11232	#define BUILD_BUG_SQE_ELEM(eoffset, etype, ename) \
 11233		__BUILD_BUG_VERIFY_ELEMENT(struct io_uring_sqe, eoffset, etype, ename)
 11234		BUILD_BUG_ON(sizeof(struct io_uring_sqe) != 64);
 11235		BUILD_BUG_ON(sizeof(struct io_uring_cmd_sqe) != 64);
 11236		BUILD_BUG_SQE_ELEM(0,  __u8,   hdr.opcode);
 11237		BUILD_BUG_SQE_ELEM(1,  __u8,   hdr.flags);
 11238		BUILD_BUG_SQE_ELEM(2,  __u16,  hdr.ioprio);
 11239		BUILD_BUG_SQE_ELEM(4,  __s32,  hdr.fd);
 11240		BUILD_BUG_SQE_ELEM(8,  __u64,  off);
 11241		BUILD_BUG_SQE_ELEM(8,  __u64,  addr2);
 11242		BUILD_BUG_SQE_ELEM(16, __u64,  addr);
 11243		BUILD_BUG_SQE_ELEM(16, __u64,  splice_off_in);
 11244		BUILD_BUG_SQE_ELEM(24, __u32,  len);
 11245		BUILD_BUG_SQE_ELEM(28,     __kernel_rwf_t, rw_flags);
 11246		BUILD_BUG_SQE_ELEM(28, /* compat */   int, rw_flags);
 11247		BUILD_BUG_SQE_ELEM(28, /* compat */ __u32, rw_flags);
 11248		BUILD_BUG_SQE_ELEM(28, __u32,  fsync_flags);
 11249		BUILD_BUG_SQE_ELEM(28, /* compat */ __u16,  poll_events);
 11250		BUILD_BUG_SQE_ELEM(28, __u32,  poll32_events);
 11251		BUILD_BUG_SQE_ELEM(28, __u32,  sync_range_flags);
 11252		BUILD_BUG_SQE_ELEM(28, __u32,  msg_flags);
 11253		BUILD_BUG_SQE_ELEM(28, __u32,  timeout_flags);
 11254		BUILD_BUG_SQE_ELEM(28, __u32,  accept_flags);
 11255		BUILD_BUG_SQE_ELEM(28, __u32,  cancel_flags);
 11256		BUILD_BUG_SQE_ELEM(28, __u32,  open_flags);
 11257		BUILD_BUG_SQE_ELEM(28, __u32,  statx_flags);
 11258		BUILD_BUG_SQE_ELEM(28, __u32,  fadvise_advice);
 11259		BUILD_BUG_SQE_ELEM(28, __u32,  splice_flags);
 11260		BUILD_BUG_SQE_ELEM(32, __u64,  user_data);
 11261		BUILD_BUG_SQE_ELEM(40, __u16,  buf_index);
 11262		BUILD_BUG_SQE_ELEM(40, __u16,  buf_group);
 11263		BUILD_BUG_SQE_ELEM(42, __u16,  personality);
 11264		BUILD_BUG_SQE_ELEM(44, __s32,  splice_fd_in);
 11265		BUILD_BUG_SQE_ELEM(44, __u32,  file_index);
 11266	
 11267		#define BUILD_BUG_SQEC_ELEM(eoffset, etype, ename) \
 11268		__BUILD_BUG_VERIFY_ELEMENT(struct io_uring_cmd_sqe, eoffset, etype, ename)
 11269		BUILD_BUG_SQEC_ELEM(8,				__u64,	user_data);
 11270		BUILD_BUG_SQEC_ELEM(18,				__u16,	personality);
 11271		BUILD_BUG_SQEC_ELEM(sqe_offsets[1].user_data,	__u64,	user_data);
 11272		BUILD_BUG_SQEC_ELEM(sqe_offsets[1].personality,	__u16,	personality);

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

             reply	other threads:[~2021-12-20 20:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-20 20:57 kernel test robot [this message]
2021-12-20 20:57 ` [axboe-block:nvme-passthru-wip.2 4/10] fs/io_uring.c:11271:2: error: call to __compiletime_assert_764 declared with 'error' attribute: BUILD_BUG_ON failed: offsetof(struct io_uring_cmd_sqe, user_data) != sqe_offsets[1].user_data kernel test robot

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=202112210447.xuPrVLM2-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=axboe@kernel.dk \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.