[tip:x86/entry 29/29] include/linux/cpumask.h:894:9: error: implicit declaration of function 'arch_test_bit'; did you mean

From: kernel test robot
Date: Wed Jun 03 2020 - 22:51:33 EST

tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/entry
head: 02da62886d81c6683fbd6a09aec02b2c050d5827
commit: 02da62886d81c6683fbd6a09aec02b2c050d5827 [29/29] x86/entry, cpumask: Provide non-instrumented variant of cpu_is_offline()
config: arc-randconfig-r024-20200603 (attached as .config)
compiler: arc-elf-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
git checkout 02da62886d81c6683fbd6a09aec02b2c050d5827
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc

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

All errors (new ones prefixed by >>, old ones prefixed by <<):

In file included from include/linux/rcupdate.h:31,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from arch/arc/kernel/asm-offsets.c:6:
include/linux/cpumask.h: In function 'arch_cpu_online':
>> include/linux/cpumask.h:894:9: error: implicit declaration of function 'arch_test_bit'; did you mean 'test_bit'? [-Werror=implicit-function-declaration]
894 | return arch_test_bit(cpu, cpumask_bits(cpu_online_mask));
| ^~~~~~~~~~~~~
| test_bit
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:100: arch/arc/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1149: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:180: sub-make] Error 2

vim +894 include/linux/cpumask.h

891 #if NR_CPUS > 1
892 static __always_inline bool arch_cpu_online(int cpu)
893 {
> 894 return arch_test_bit(cpu, cpumask_bits(cpu_online_mask));
895 }
896 #else
897 static __always_inline bool arch_cpu_online(int cpu)
898 {
899 return cpu == 0;
900 }
901 #endif

0-DAY CI Kernel Test Service, Intel Corporation

Attachment: .config.gz
Description: application/gzip