lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202202092311.nsDv5MPD-lkp@intel.com>
Date:   Wed, 9 Feb 2022 23:29:54 +0800
From:   kernel test robot <lkp@...el.com>
To:     Yury Norov <yury.norov@...il.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [norov:bitmap-20220204 10/48]
 drivers/net/ethernet/qlogic/qed/qed_rdma.c:332:7: error: use of undeclared
 identifier 'idx'

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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ