public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [norov:bitmap-20220204 10/48] drivers/net/ethernet/qlogic/qed/qed_rdma.c:332:7: error: use of undeclared identifier 'idx'
@ 2022-02-09 15:29 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-02-09 15:29 UTC (permalink / raw)
  To: Yury Norov; +Cc: llvm, kbuild-all, linux-kernel

tree:   https://github.com/norov/linux bitmap-20220204
head:   6be3158022466595db078b4091472d0541e04bdc
commit: 8bca8c2ba1a83d9ebf601431dab6c4ab05d9ca27 [10/48] qed: rework qed_rdma_bmap_free()
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20220209/202202092311.nsDv5MPD-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project e8bff9ae54a55b4dbfeb6ba55f723abbd81bf494)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://github.com/norov/linux/commit/8bca8c2ba1a83d9ebf601431dab6c4ab05d9ca27
        git remote add norov https://github.com/norov/linux
        git fetch --no-tags norov bitmap-20220204
        git checkout 8bca8c2ba1a83d9ebf601431dab6c4ab05d9ca27
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/net/ethernet/qlogic/qed/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/net/ethernet/qlogic/qed/qed_rdma.c:332:7: error: use of undeclared identifier 'idx'
           for (idx = 0; idx < bmap->max_count; idx += 512) {
                ^
   drivers/net/ethernet/qlogic/qed/qed_rdma.c:332:16: error: use of undeclared identifier 'idx'
           for (idx = 0; idx < bmap->max_count; idx += 512) {
                         ^
   drivers/net/ethernet/qlogic/qed/qed_rdma.c:332:39: error: use of undeclared identifier 'idx'
           for (idx = 0; idx < bmap->max_count; idx += 512) {
                                                ^
   drivers/net/ethernet/qlogic/qed/qed_rdma.c:333:37: error: use of undeclared identifier 'idx'
                   b =  bmap->bitmap + BITS_TO_LONGS(idx);
                                                     ^
   drivers/net/ethernet/qlogic/qed/qed_rdma.c:334:33: error: use of undeclared identifier 'idx'
                   nbits = min(bmap->max_count - idx, 512);
                                                 ^
   drivers/net/ethernet/qlogic/qed/qed_rdma.c:334:33: error: use of undeclared identifier 'idx'
   drivers/net/ethernet/qlogic/qed/qed_rdma.c:338:30: error: use of undeclared identifier 'idx'
                                     "line 0x%04x: %*pb\n", idx / 512, nbits, b);
                                                            ^
   7 errors generated.


vim +/idx +332 drivers/net/ethernet/qlogic/qed/qed_rdma.c

   318	
   319	void qed_rdma_bmap_free(struct qed_hwfn *p_hwfn,
   320				struct qed_bmap *bmap, bool check)
   321	{
   322		unsigned int pos, weight, nbits;
   323		unsigned long *b;
   324	
   325		if (!check || !(weight = bitmap_weight(bmap->bitmap, bmap->max_count)))
   326			goto end;
   327	
   328		DP_NOTICE(p_hwfn,
   329			  "%s bitmap not free - size=%d, weight=%d, 512 bits per line\n",
   330			  bmap->name, bmap->max_count, weight);
   331	
 > 332		for (idx = 0; idx < bmap->max_count; idx += 512) {
   333			b =  bmap->bitmap + BITS_TO_LONGS(idx);
   334			nbits = min(bmap->max_count - idx, 512);
   335	
   336			if (!bitmap_empty(b, nbits))
   337				DP_NOTICE(p_hwfn,
   338					  "line 0x%04x: %*pb\n", idx / 512, nbits, b);
   339		}
   340	
   341	end:
   342		kfree(bmap->bitmap);
   343		bmap->bitmap = NULL;
   344	}
   345	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

only message in thread, other threads:[~2022-02-09 15:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-09 15:29 [norov:bitmap-20220204 10/48] drivers/net/ethernet/qlogic/qed/qed_rdma.c:332:7: error: use of undeclared identifier 'idx' 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