Re: [PATCH rdma-next 3/4] RDMA/bnxt_re: Direct Verbs: Support DBR and UMEM verbs

kernel test robot
2025-11-04T01:34:37Z

Hi Sriharsha,

kernel test robot noticed the following build warnings:

[auto build test WARNING on rdma/for-next]
[also build test WARNING on linus/master v6.18-rc4 next-20251103]
[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/Sriharsha-Basavapatna/RDMA-bnxt_re-Move-the-UAPI-methods-to-a-dedicated-file/20251103-190151
base: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next
patch link: https://lore.kernel.org/r/20251103105033.205586-4-sriharsha.basavapatna%40broadcom.com
patch subject: [PATCH rdma-next 3/4] RDMA/bnxt_re: Direct Verbs: Support DBR and UMEM verbs
config: x86_64-rhel-9.4-ltp (https://download.01.org/0day-ci/archive/20251104/202511040929.WGNASMrK-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251104/202511040929.WGNASMrK-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/202511040929.WGNASMrK-lkp@intel.com/

All warnings (new ones prefixed by >>):

drivers/infiniband/hw/bnxt_re/dv.c: In function 'bnxt_re_handler_BNXT_RE_METHOD_DBR_QUERY':
>> drivers/infiniband/hw/bnxt_re/dv.c:552:29: warning: variable 'rdev' set but not used [-Wunused-but-set-variable]
552 | struct bnxt_re_dev *rdev;
| ^~~~

vim +/rdev +552 drivers/infiniband/hw/bnxt_re/dv.c

546
547 static int UVERBS_HANDLER(BNXT_RE_METHOD_DBR_QUERY)(struct uverbs_attr_bundle *attrs)
548 {
549 struct bnxt_re_dv_db_region dpi = {};
550 struct bnxt_re_ucontext *uctx;
551 struct ib_ucontext *ib_uctx;
> 552 struct bnxt_re_dev *rdev;
553 int ret;
554
555 ib_uctx = ib_uverbs_get_ucontext(attrs);
556 if (IS_ERR(ib_uctx))
557 return PTR_ERR(ib_uctx);
558
559 uctx = container_of(ib_uctx, struct bnxt_re_ucontext, ib_uctx);
560 rdev = uctx->rdev;
561
562 dpi.umdbr = uctx->dpi.umdbr;
563 dpi.dpi = uctx->dpi.dpi;
564
565 ret = uverbs_copy_to_struct_or_zero(attrs, BNXT_RE_DV_QUERY_DBR_ATTR,
566 &dpi, sizeof(dpi));
567 if (ret)
568 return ret;
569
570 return 0;
571 }
572

--
0-DAY CI Kernel Test Service