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: <202202180309.LIPKYeon-lkp@intel.com>
Date:   Fri, 18 Feb 2022 03:47:46 +0800
From:   kernel test robot <lkp@...el.com>
To:     Yury Norov <yury.norov@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Ulf Hansson <ulf.hansson@...aro.org>
Subject: [ulfh-mmc:next 20/24] drivers/memstick/core/ms_block.c:158:13:
 error: implicit declaration of function 'bitmap_weight_eq'; did you mean
 'bitmap_weight'?

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git next
head:   4b67100bafbb3f60e6eecf87631e4d400d9b6f17
commit: 5f8d171cd8a93ff425556e7fde5d59fefc677bf7 [20/24] memstick: replace bitmap_weight with bitmap_weight_eq where appropriate
config: alpha-randconfig-r004-20220217 (https://download.01.org/0day-ci/archive/20220218/202202180309.LIPKYeon-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 11.2.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git/commit/?id=5f8d171cd8a93ff425556e7fde5d59fefc677bf7
        git remote add ulfh-mmc git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git
        git fetch --no-tags ulfh-mmc next
        git checkout 5f8d171cd8a93ff425556e7fde5d59fefc677bf7
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=alpha SHELL=/bin/bash drivers/memstick/core/

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/memstick/core/ms_block.c: In function 'msb_validate_used_block_bitmap':
>> drivers/memstick/core/ms_block.c:158:13: error: implicit declaration of function 'bitmap_weight_eq'; did you mean 'bitmap_weight'? [-Werror=implicit-function-declaration]
     158 |         if (bitmap_weight_eq(msb->used_blocks_bitmap, msb->block_count,
         |             ^~~~~~~~~~~~~~~~
         |             bitmap_weight
   cc1: some warnings being treated as errors


vim +158 drivers/memstick/core/ms_block.c

   145	
   146	/* Debug test to validate free block counts */
   147	static int msb_validate_used_block_bitmap(struct msb_data *msb)
   148	{
   149		int total_free_blocks = 0;
   150		int i;
   151	
   152		if (!debug)
   153			return 0;
   154	
   155		for (i = 0; i < msb->zone_count; i++)
   156			total_free_blocks += msb->free_block_count[i];
   157	
 > 158		if (bitmap_weight_eq(msb->used_blocks_bitmap, msb->block_count,
   159					msb->block_count - total_free_blocks))
   160			return 0;
   161	
   162		pr_err("BUG: free block counts don't match the bitmap");
   163		msb->read_only = true;
   164		return -EINVAL;
   165	}
   166	

---
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