From: kernel test robot <lkp@intel.com>
To: Yuho Choi <oss.patchbox@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev, Doug Ledford <dledford@redhat.com>,
Jason Gunthorpe <jgg+lists@ziepe.ca>,
linux-rdma@vger.kernel.org, Leon Romanovsky <leon@kernel.org>
Subject: [rdma:wip/leon-for-next 63/69] drivers/infiniband/hw/bnxt_re/ib_verbs.c:953:6: warning: unused variable 'rc'
Date: Fri, 27 Nov 2026 00:14:45 +0100 [thread overview]
Message-ID: <20261127001029.bEUPKsfa-lkp@intel.com> (raw)
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
reply other threads:[~2026-11-26 23:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261127001029.bEUPKsfa-lkp@intel.com \
--to=lkp@intel.com \
--cc=dledford@redhat.com \
--cc=jgg+lists@ziepe.ca \
--cc=leon@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=oss.patchbox@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox