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: <202111300515.ZhTwh0ao-lkp@intel.com>
Date:   Tue, 30 Nov 2021 05:23:33 +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_tmp 12/12] include/linux/bitmap.h:419:29: error:
 expected identifier or '('

tree:   https://github.com/norov/linux bitmap_tmp
head:   985b0047eb9f4a5916eeb4f85e9e173d220d8fc7
commit: 985b0047eb9f4a5916eeb4f85e9e173d220d8fc7 [12/12] aaa
config: hexagon-randconfig-r045-20211129 (https://download.01.org/0day-ci/archive/20211130/202111300515.ZhTwh0ao-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project df08b2fe8b35cb63dfb3b49738a3494b9b4e6f8e)
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://github.com/norov/linux/commit/985b0047eb9f4a5916eeb4f85e9e173d220d8fc7
        git remote add norov https://github.com/norov/linux
        git fetch --no-tags norov bitmap_tmp
        git checkout 985b0047eb9f4a5916eeb4f85e9e173d220d8fc7
        # 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=hexagon prepare

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

   In file included from arch/hexagon/kernel/asm-offsets.c:12:
   In file included from include/linux/compat.h:14:
   In file included from include/linux/sem.h:5:
   In file included from include/uapi/linux/sem.h:5:
   In file included from include/linux/ipc.h:5:
   In file included from include/linux/spinlock.h:62:
   In file included from include/linux/lockdep.h:14:
   In file included from include/linux/smp.h:13:
   In file included from include/linux/cpumask.h:12:
>> include/linux/bitmap.h:419:29: error: expected identifier or '('
   static __always_inline bool bitmap_weight_le(const unsigned long *src,
                               ^
   include/linux/bitmap.h:417:41: note: expanded from macro 'bitmap_weight_le'
   #define bitmap_weight_le(src, nbits, n) !bitmap_weight_gt((src), (nbits), (n))
                                           ^
   1 error generated.
   make[2]: *** [scripts/Makefile.build:122: arch/hexagon/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1284: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:226: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +419 include/linux/bitmap.h

985b0047eb9f4a Yury Norov 2021-11-29  418  
899f6b60178855 Yury Norov 2021-11-23 @419  static __always_inline bool bitmap_weight_le(const unsigned long *src,
899f6b60178855 Yury Norov 2021-11-23  420  			unsigned int nbits, unsigned int num)
899f6b60178855 Yury Norov 2021-11-23  421  {
899f6b60178855 Yury Norov 2021-11-23  422  	if (small_const_nbits(nbits))
899f6b60178855 Yury Norov 2021-11-23  423  		return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)) < num;
899f6b60178855 Yury Norov 2021-11-23  424  
899f6b60178855 Yury Norov 2021-11-23  425  	return __bitmap_weight_le(src, nbits, num);
899f6b60178855 Yury Norov 2021-11-23  426  }
899f6b60178855 Yury Norov 2021-11-23  427  

:::::: The code at line 419 was first introduced by commit
:::::: 899f6b60178855d893aef0cb83aa1d9320216121 lib/bitmap: add bitmap_weight_{eq,gt,le}

:::::: TO: Yury Norov <yury.norov@...il.com>
:::::: CC: Yury Norov <yury.norov@...il.com>

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