Re: [PATCH for-next v7 5/7] RDMA/rxe: Allow registering MRs for On-Demand Paging

From: kernel test robot
Date: Thu Nov 09 2023 - 13:49:26 EST


Hi Daisuke,

kernel test robot noticed the following build warnings:

[auto build test WARNING on rdma/for-next]
[also build test WARNING on linus/master v6.6 next-20231109]
[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/Daisuke-Matsuda/RDMA-rxe-Always-defer-tasks-on-responder-and-completer-to-workqueue/20231109-185612
base: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next
patch link: https://lore.kernel.org/r/5d46bd682aa8e3d5cabc38ca1cd67d2976f2731d.1699503619.git.matsuda-daisuke%40fujitsu.com
patch subject: [PATCH for-next v7 5/7] RDMA/rxe: Allow registering MRs for On-Demand Paging
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20231110/202311100130.efgRVVKL-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/20231110/202311100130.efgRVVKL-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/202311100130.efgRVVKL-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

drivers/infiniband/sw/rxe/rxe_odp.c: In function 'rxe_mr_set_xarray':
>> drivers/infiniband/sw/rxe/rxe_odp.c:35:22: warning: variable 'entry' set but not used [-Wunused-but-set-variable]
35 | void *page, *entry;
| ^~~~~


vim +/entry +35 drivers/infiniband/sw/rxe/rxe_odp.c

29
30 static void rxe_mr_set_xarray(struct rxe_mr *mr, unsigned long start,
31 unsigned long end, unsigned long *pfn_list)
32 {
33 unsigned long upper = rxe_mr_iova_to_index(mr, end - 1);
34 unsigned long lower = rxe_mr_iova_to_index(mr, start);
> 35 void *page, *entry;
36
37 XA_STATE(xas, &mr->page_list, lower);
38
39 xas_lock(&xas);
40 while (xas.xa_index <= upper) {
41 if (pfn_list[xas.xa_index] & HMM_PFN_WRITE) {
42 page = xa_tag_pointer(hmm_pfn_to_page(pfn_list[xas.xa_index]),
43 RXE_ODP_WRITABLE_BIT);
44 } else
45 page = hmm_pfn_to_page(pfn_list[xas.xa_index]);
46
47 xas_store(&xas, page);
48 entry = xas_next(&xas);
49 }
50 xas_unlock(&xas);
51 }
52

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