tree:
https://github.com/norov/linux bitmaps2
head: 352293284677497a59bea658f248c48d4952403e
commit: 942c587cda940e9da8b2677e88155aee139cac61 [5/9] add find_first_le
config: h8300-randconfig-r035-20210407 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.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://github.com/norov/linux/commit/942c587cda940e9da8b2677e88155aee139...
git remote add norov
https://github.com/norov/linux
git fetch --no-tags norov bitmaps2
git checkout 942c587cda940e9da8b2677e88155aee139cac61
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/bitmap.h:9,
from include/linux/cpumask.h:12,
from include/linux/smp.h:13,
from include/linux/lockdep.h:14,
from include/linux/rcupdate.h:29,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from arch/h8300/kernel/asm-offsets.c:13:
include/linux/find.h: In function 'find_first_bit_le':
> include/linux/find.h:250:23: error: implicit declaration of
function 'BITMAP_FIRST_BYTE_MASK' [-Werror=implicit-function-declaration]
250 | val = swab(*addr) & BITMAP_FIRST_BYTE_MASK(size);
| ^~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from include/linux/bitmap.h:9,
from include/linux/cpumask.h:12,
from include/linux/smp.h:13,
from include/linux/lockdep.h:14,
from include/linux/rcupdate.h:29,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from arch/h8300/kernel/asm-offsets.c:13:
include/linux/find.h: In function 'find_first_bit_le':
> include/linux/find.h:250:23: error: implicit declaration of
function 'BITMAP_FIRST_BYTE_MASK' [-Werror=implicit-function-declaration]
250 | val = swab(*addr) & BITMAP_FIRST_BYTE_MASK(size);
| ^~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:118: arch/h8300/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1331: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:222: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
error: no override and no default toolchain set
init/Kconfig:70:warning: 'RUSTC_VERSION': number is invalid
In file included from include/linux/bitmap.h:9,
from include/linux/cpumask.h:12,
from include/linux/smp.h:13,
from include/linux/lockdep.h:14,
from include/linux/rcupdate.h:29,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from arch/h8300/kernel/asm-offsets.c:13:
include/linux/find.h: In function 'find_first_bit_le':
> include/linux/find.h:250:23: error: implicit declaration of
function 'BITMAP_FIRST_BYTE_MASK' [-Werror=implicit-function-declaration]
250 | val = swab(*addr) & BITMAP_FIRST_BYTE_MASK(size);
| ^~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:118: arch/h8300/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1331: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:222: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/BITMAP_FIRST_BYTE_MASK +250 include/linux/find.h
243
244 #ifndef find_first_bit_le
245 static inline
246 unsigned long find_first_bit_le(const unsigned long *addr, unsigned long size)
247 {
248 if (small_const_nbits(size)) {
249 unsigned long val = swab(*addr) & GENMASK(size - 1, 0);
250 val = swab(*addr) & BITMAP_FIRST_BYTE_MASK(size);
251
252 return val ? __ffs(val) : size;
253 }
254
255 return _find_first_bit(addr, size, 1);
256 }
257 #endif
258
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org