Content-Type: multipart/mixed; boundary="===============2860506921012623852==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [RFC PATCH v9 24/26] RDMA/rxe: Add wait_for_completion to pool objects Date: Fri, 28 Jan 2022 11:58:33 +0800 Message-ID: <202201281100.RzpcbUSw-lkp@intel.com> In-Reply-To: <20220127213755.31697-25-rpearsonhpe@gmail.com> List-Id: --===============2860506921012623852== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Bob, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on rdma/for-next] [also build test WARNING on v5.17-rc1 next-20220127] [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/Bob-Pearson/RDMA-rxe-Move-= rxe_mcast_add-delete-to-rxe_mcast-c/20220128-063757 base: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-n= ext config: x86_64-randconfig-a016-20220124 (https://download.01.org/0day-ci/ar= chive/20220128/202201281100.RzpcbUSw-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 33b45e= e44b1f32ffdbc995e6fec806271b4b3ba4) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/0b97a20ee58915580069267b6= e4ec2e643dc12b5 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Bob-Pearson/RDMA-rxe-Move-rxe_mcas= t_add-delete-to-rxe_mcast-c/20220128-063757 git checkout 0b97a20ee58915580069267b6e4ec2e643dc12b5 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash drivers/infiniband/sw/rxe/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/infiniband/sw/rxe/rxe_pool.c:287:2: warning: variable 'ret' is u= sed uninitialized whenever 'if' condition is false [-Wsometimes-uninitializ= ed] if (timeout) { ^~~~~~~~~~~~ include/linux/compiler.h:56:28: note: expanded from macro 'if' #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:58:30: note: expanded from macro '__trace_if_va= r' #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __tr= ace_if_value(cond)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~ drivers/infiniband/sw/rxe/rxe_pool.c:303:9: note: uninitialized use occu= rs here return ret; ^~~ drivers/infiniband/sw/rxe/rxe_pool.c:287:2: note: remove the 'if' if its= condition is always true if (timeout) { ^~~~~~~~~~~~~ include/linux/compiler.h:56:23: note: expanded from macro 'if' #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) ^ drivers/infiniband/sw/rxe/rxe_pool.c:285:9: note: initialize the variabl= e 'ret' to silence this warning int ret; ^ =3D 0 1 warning generated. vim +287 drivers/infiniband/sw/rxe/rxe_pool.c 279 = 280 int __rxe_wait(struct rxe_pool_elem *elem) 281 { 282 struct rxe_pool *pool =3D elem->pool; 283 static int timeout =3D RXE_POOL_TIMEOUT; 284 static int timeout_failures; 285 int ret; 286 = > 287 if (timeout) { --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============2860506921012623852==--