Re: [PATCH for-rc 6/6] RDMA/hns: Improve the readability of free mr uninit

From: kernel test robot
Date: Wed Dec 06 2023 - 00:06:31 EST


Hi Junxian,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v6.7-rc4]
[cannot apply to rdma/for-next next-20231205]
[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/Junxian-Huang/RDMA-hns-Rename-the-interrupts/20231129-183932
base: linus/master
patch link: https://lore.kernel.org/r/20231129094434.134528-7-huangjunxian6%40hisilicon.com
patch subject: [PATCH for-rc 6/6] RDMA/hns: Improve the readability of free mr uninit
config: sparc64-allmodconfig (https://download.01.org/0day-ci/archive/20231206/202312061253.0VL1jlNs-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231206/202312061253.0VL1jlNs-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312061253.0VL1jlNs-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

drivers/infiniband/hw/hns/hns_roce_hw_v2.c: In function 'free_mr_exit':
>> drivers/infiniband/hw/hns/hns_roce_hw_v2.c:2684:23: warning: unused variable 'qp' [-Wunused-variable]
2684 | struct ib_qp *qp;
| ^~


vim +/qp +2684 drivers/infiniband/hw/hns/hns_roce_hw_v2.c

2679
2680 static void free_mr_exit(struct hns_roce_dev *hr_dev)
2681 {
2682 struct hns_roce_v2_priv *priv = hr_dev->priv;
2683 struct hns_roce_v2_free_mr *free_mr = &priv->free_mr;
> 2684 struct ib_qp *qp;
2685 int i;
2686
2687 for (i = 0; i < ARRAY_SIZE(free_mr->rsv_qp); i++)
2688 free_mr_uninit_qp(hr_dev, i);
2689
2690 free_mr_uninit_cq(hr_dev);
2691
2692 free_mr_uninit_pd(hr_dev);
2693 }
2694

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