Hi Xiao,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on v5.16]
[also build test ERROR on next-20220113]
[cannot apply to rdma/for-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Xiao-Yang/RDMA-rxe-Add-RDMA-Atom...
base: df0cc57e057f18e44dac8e6c18aba47ab53202f9
config: riscv-randconfig-r035-20220113
(
https://download.01.org/0day-ci/archive/20220113/202201132027.agYTyFRu-lk...)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
d1021978b8e7e35dcc30201ca1731d64b5a602a8)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
#
https://github.com/0day-ci/linux/commit/4294d58609cfb4c296c7937eafd58e044...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Xiao-Yang/RDMA-rxe-Add-RDMA-Atomic-Write-operation/20220113-110548
git checkout 4294d58609cfb4c296c7937eafd58e044a4d81c6
# 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=riscv SHELL=/bin/bash drivers/infiniband/sw/rxe/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/infiniband/sw/rxe/rxe_resp.c:606:2: error: call to
__compiletime_assert_499 declared with 'error' attribute: Need native word sized
stores/loads for atomicity.
smp_store_release(dst, *src);
^
include/asm-generic/barrier.h:162:2: note: expanded from macro
'smp_store_release'
compiletime_assert_atomic_type(*p); \
^
include/linux/compiler_types.h:338:2: note: expanded from macro
'compiletime_assert_atomic_type'
compiletime_assert(__native_word(t), \
^
include/linux/compiler_types.h:335:2: note: expanded from macro
'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
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>:165:1: note: expanded from here
__compiletime_assert_499
^
1 error generated.
vim +/error +606 drivers/infiniband/sw/rxe/rxe_resp.c
593
594 static enum resp_states process_atomic_write(struct rxe_qp *qp,
595 struct rxe_pkt_info *pkt)
596 {
597 struct rxe_mr *mr = qp->resp.mr;
598
599 u64 *src = payload_addr(pkt);
600
601 u64 *dst = iova_to_vaddr(mr, qp->resp.va + qp->resp.offset, sizeof(u64));
602 if (!dst || (uintptr_t)dst & 7)
603 return RESPST_ERR_MISALIGNED_ATOMIC;
604
605 /* Do atomic write after all prior operations have completed */
606 smp_store_release(dst, *src);
607
608 /* decrease resp.resid to zero */
609 qp->resp.resid -= sizeof(u64);
610
611 return RESPST_NONE;
612 }
613
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org