tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 885df05bf634d589fbf030c3751614eaa453fb5d commit: 7e3f926bf4538cb4988b3e3f8bc1cb4a603b2ef6 [1435/2748] rcu/kvfree: Eliminate k[v]free_rcu() single argument macro config: x86_64-randconfig-x082 compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) 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 # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=7e3f926bf4538cb4988b3e3f8bc1cb4a603b2ef6 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 7e3f926bf4538cb4988b3e3f8bc1cb4a603b2ef6 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202305170636.sxjeq8hB-lkp@intel.com/ Note: the linux-next/master HEAD 885df05bf634d589fbf030c3751614eaa453fb5d builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): >> drivers/infiniband/sw/rxe/rxe_verbs.c:1359:14: error: too few arguments provided to function-like macro invocation kfree_rcu(mr); ^ include/linux/rcupdate.h:986:9: note: macro 'kfree_rcu' defined here #define kfree_rcu(ptr, rhf) kvfree_rcu_arg_2(ptr, rhf) ^ >> drivers/infiniband/sw/rxe/rxe_verbs.c:1359:2: error: use of undeclared identifier 'kfree_rcu'; did you mean 'kfree_skb'? kfree_rcu(mr); ^~~~~~~~~ kfree_skb include/linux/skbuff.h:1234:20: note: 'kfree_skb' declared here static inline void kfree_skb(struct sk_buff *skb) ^ drivers/infiniband/sw/rxe/rxe_verbs.c:1359:2: warning: expression result unused [-Wunused-value] kfree_rcu(mr); ^~~~~~~~~ 1 warning and 2 errors generated. vim +1359 drivers/infiniband/sw/rxe/rxe_verbs.c 8700e3e7c4857d Moni Shoua 2016-06-16 1342 5bf944f24129cb Bob Pearson 2023-03-03 1343 static int rxe_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata) 5bf944f24129cb Bob Pearson 2023-03-03 1344 { 5bf944f24129cb Bob Pearson 2023-03-03 1345 struct rxe_mr *mr = to_rmr(ibmr); 5bf944f24129cb Bob Pearson 2023-03-03 1346 int err, cleanup_err; 5bf944f24129cb Bob Pearson 2023-03-03 1347 5bf944f24129cb Bob Pearson 2023-03-03 1348 /* See IBA 10.6.7.2.6 */ 5bf944f24129cb Bob Pearson 2023-03-03 1349 if (atomic_read(&mr->num_mw) > 0) { 5bf944f24129cb Bob Pearson 2023-03-03 1350 err = -EINVAL; 5bf944f24129cb Bob Pearson 2023-03-03 1351 rxe_dbg_mr(mr, "mr has mw's bound"); 5bf944f24129cb Bob Pearson 2023-03-03 1352 goto err_out; 5bf944f24129cb Bob Pearson 2023-03-03 1353 } 5bf944f24129cb Bob Pearson 2023-03-03 1354 5bf944f24129cb Bob Pearson 2023-03-03 1355 cleanup_err = rxe_cleanup(mr); 5bf944f24129cb Bob Pearson 2023-03-03 1356 if (cleanup_err) 5bf944f24129cb Bob Pearson 2023-03-03 1357 rxe_err_mr(mr, "cleanup failed, err = %d", cleanup_err); 5bf944f24129cb Bob Pearson 2023-03-03 1358 5bf944f24129cb Bob Pearson 2023-03-03 @1359 kfree_rcu(mr); 5bf944f24129cb Bob Pearson 2023-03-03 1360 return 0; 5bf944f24129cb Bob Pearson 2023-03-03 1361 5bf944f24129cb Bob Pearson 2023-03-03 1362 err_out: 5bf944f24129cb Bob Pearson 2023-03-03 1363 rxe_err_mr(mr, "returned err = %d", err); 5bf944f24129cb Bob Pearson 2023-03-03 1364 return err; 5bf944f24129cb Bob Pearson 2023-03-03 1365 } 5bf944f24129cb Bob Pearson 2023-03-03 1366 :::::: The code at line 1359 was first introduced by commit :::::: 5bf944f24129cbc4b5828348bdce2db94ca9fbd6 RDMA/rxe: Add error messages :::::: TO: Bob Pearson :::::: CC: Jason Gunthorpe -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests