Hi Selvin, kernel test robot noticed the following build warnings: [auto build test WARNING on rdma/for-next] [also build test WARNING on linus/master v6.3 next-20230425] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Selvin-Xavier/RDMA-bnxt_re-Use-the-common-mmap-helper-functions/20230426-033131 base: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next patch link: https://lore.kernel.org/r/1682450993-17711-4-git-send-email-selvin.xavier%40broadcom.com patch subject: [PATCH v2 for-next 3/6] RDMA/bnxt_re: Query function capabilities from firmware config: ia64-allyesconfig (https://download.01.org/0day-ci/archive/20230426/202304260421.Wr6M1Ys9-lkp@xxxxxxxxx/config) compiler: ia64-linux-gcc (GCC) 12.1.0 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://github.com/intel-lab-lkp/linux/commit/2e3cab6bf041dd376d6aeae617adfdcdd68f8a4b git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Selvin-Xavier/RDMA-bnxt_re-Use-the-common-mmap-helper-functions/20230426-033131 git checkout 2e3cab6bf041dd376d6aeae617adfdcdd68f8a4b # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/infiniband/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Link: https://lore.kernel.org/oe-kbuild-all/202304260421.Wr6M1Ys9-lkp@xxxxxxxxx/ All warnings (new ones prefixed by >>): drivers/infiniband/hw/bnxt_re/main.c: In function 'bnxt_re_hwrm_qcaps': >> drivers/infiniband/hw/bnxt_re/main.c:347:37: warning: variable 'cctx' set but not used [-Wunused-but-set-variable] 347 | struct bnxt_qplib_chip_ctx *cctx; | ^~~~ vim +/cctx +347 drivers/infiniband/hw/bnxt_re/main.c 340 341 /* Query function capabilities using common hwrm */ 342 int bnxt_re_hwrm_qcaps(struct bnxt_re_dev *rdev) 343 { 344 struct bnxt_en_dev *en_dev = rdev->en_dev; 345 struct hwrm_func_qcaps_output resp = {0}; 346 struct hwrm_func_qcaps_input req = {0}; > 347 struct bnxt_qplib_chip_ctx *cctx; 348 struct bnxt_fw_msg fw_msg; 349 350 cctx = rdev->chip_ctx; 351 memset(&fw_msg, 0, sizeof(fw_msg)); 352 bnxt_re_init_hwrm_hdr(rdev, (void *)&req, 353 HWRM_FUNC_QCAPS, -1, -1); 354 req.fid = cpu_to_le16(0xffff); 355 bnxt_re_fill_fw_msg(&fw_msg, (void *)&req, sizeof(req), (void *)&resp, 356 sizeof(resp), DFLT_HWRM_CMD_TIMEOUT); 357 return bnxt_send_msg(en_dev, &fw_msg); 358 } 359 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests