Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
* [rdma:wip/leon-for-next 63/69] drivers/infiniband/hw/bnxt_re/ib_verbs.c:953:6: warning: unused variable 'rc'
@ 2026-11-26 23:14 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-26 23:14 UTC (permalink / raw)
  To: Yuho Choi
  Cc: oe-kbuild-all, Doug Ledford, Jason Gunthorpe, linux-rdma,
	Leon Romanovsky

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git wip/leon-for-next
head:   d24184a64765d7797ff0f46f6872aa91a6a1a5da
commit: a95c6b735017c61d92e7465d153fb06d540f2132 [63/69] RDMA/bnxt_re: Don't republish a QP whose destroy failed
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20261127/20261127001029.bEUPKsfa-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261127/20261127001029.bEUPKsfa-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261127001029.bEUPKsfa-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/infiniband/hw/bnxt_re/ib_verbs.c:953:6: warning: unused variable 'rc' [-Wunused-variable]
     953 |         int rc;
         |             ^~
   1 warning generated.


vim +/rc +953 drivers/infiniband/hw/bnxt_re/ib_verbs.c

3b921e3bc4c20a Selvin Xavier      2018-02-15  947  
88de89f184661e YanLong Dai        2025-09-24  948  static void bnxt_re_destroy_gsi_sqp(struct bnxt_re_qp *qp)
8dae419f9ec730 Devesh Sharma      2020-02-15  949  {
8dae419f9ec730 Devesh Sharma      2020-02-15  950  	struct bnxt_re_qp *gsi_sqp;
8dae419f9ec730 Devesh Sharma      2020-02-15  951  	struct bnxt_re_ah *gsi_sah;
8dae419f9ec730 Devesh Sharma      2020-02-15  952  	struct bnxt_re_dev *rdev;
14611b9b984125 Kalesh AP          2023-08-03 @953  	int rc;
8dae419f9ec730 Devesh Sharma      2020-02-15  954  
8dae419f9ec730 Devesh Sharma      2020-02-15  955  	rdev = qp->rdev;
8dae419f9ec730 Devesh Sharma      2020-02-15  956  	gsi_sqp = rdev->gsi_ctx.gsi_sqp;
8dae419f9ec730 Devesh Sharma      2020-02-15  957  	gsi_sah = rdev->gsi_ctx.gsi_sah;
8dae419f9ec730 Devesh Sharma      2020-02-15  958  
6ccad8483b2866 Devesh Sharma      2020-02-15  959  	ibdev_dbg(&rdev->ibdev, "Destroy the shadow AH\n");
8dae419f9ec730 Devesh Sharma      2020-02-15  960  	bnxt_qplib_destroy_ah(&rdev->qplib_res,
8dae419f9ec730 Devesh Sharma      2020-02-15  961  			      &gsi_sah->qplib_ah,
8dae419f9ec730 Devesh Sharma      2020-02-15  962  			      true);
063975feedb143 Chandramohan Akula 2023-07-26  963  	atomic_dec(&rdev->stats.res.ah_count);
8dae419f9ec730 Devesh Sharma      2020-02-15  964  	bnxt_qplib_clean_qp(&qp->qplib_qp);
8dae419f9ec730 Devesh Sharma      2020-02-15  965  
6ccad8483b2866 Devesh Sharma      2020-02-15  966  	ibdev_dbg(&rdev->ibdev, "Destroy the shadow QP\n");
a95c6b735017c6 Yuho Choi          2026-11-24  967  	bnxt_qplib_destroy_qp(&rdev->qplib_res, &gsi_sqp->qplib_qp);
88de89f184661e YanLong Dai        2025-09-24  968  
8dae419f9ec730 Devesh Sharma      2020-02-15  969  	bnxt_qplib_free_qp_res(&rdev->qplib_res, &gsi_sqp->qplib_qp);
8dae419f9ec730 Devesh Sharma      2020-02-15  970  
097a9d23b72503 Selvin Xavier      2020-08-24  971  	/* remove from active qp list */
097a9d23b72503 Selvin Xavier      2020-08-24  972  	mutex_lock(&rdev->qp_lock);
097a9d23b72503 Selvin Xavier      2020-08-24  973  	list_del(&gsi_sqp->list);
097a9d23b72503 Selvin Xavier      2020-08-24  974  	mutex_unlock(&rdev->qp_lock);
063975feedb143 Chandramohan Akula 2023-07-26  975  	atomic_dec(&rdev->stats.res.qp_count);
097a9d23b72503 Selvin Xavier      2020-08-24  976  
8dae419f9ec730 Devesh Sharma      2020-02-15  977  	kfree(rdev->gsi_ctx.sqp_tbl);
8dae419f9ec730 Devesh Sharma      2020-02-15  978  	kfree(gsi_sah);
8dae419f9ec730 Devesh Sharma      2020-02-15  979  	kfree(gsi_sqp);
8dae419f9ec730 Devesh Sharma      2020-02-15  980  	rdev->gsi_ctx.gsi_sqp = NULL;
8dae419f9ec730 Devesh Sharma      2020-02-15  981  	rdev->gsi_ctx.gsi_sah = NULL;
8dae419f9ec730 Devesh Sharma      2020-02-15  982  	rdev->gsi_ctx.sqp_tbl = NULL;
8dae419f9ec730 Devesh Sharma      2020-02-15  983  }
8dae419f9ec730 Devesh Sharma      2020-02-15  984  

:::::: The code at line 953 was first introduced by commit
:::::: 14611b9b984125b2da5966d0725fdd89f6564c45 RDMA/bnxt_re: Remove unnecessary variable initializations

:::::: TO: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
:::::: CC: Leon Romanovsky <leon@kernel.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-26 23:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 23:14 [rdma:wip/leon-for-next 63/69] drivers/infiniband/hw/bnxt_re/ib_verbs.c:953:6: warning: unused variable 'rc' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox