tree: https://github.com/ammarfaizi2/linux-block stable/linux-stable-rc/queue/4.9 head: 483e4c5d481661c50aceaf498358f089136cb478 commit: 47ce3ea488109f17f552b9af32100f48ff4a019b [18/19] wait_on_bit: add an acquire memory barrier config: arc-defconfig compiler: arc-elf-gcc (GCC) 7.5.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/ammarfaizi2/linux-block/commit/47ce3ea488109f17f552b9af32100f48ff4a019b git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block stable/linux-stable-rc/queue/4.9 git checkout 47ce3ea488109f17f552b9af32100f48ff4a019b # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross W=1 O=build_dir ARCH=arc prepare If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from include/linux/completion.h:11:0, from include/linux/rcupdate.h:43, from include/linux/rbtree.h:34, from include/linux/sched.h:22, from arch/arc/kernel/asm-offsets.c:9: include/linux/wait.h: In function 'wait_on_bit': >> include/linux/wait.h:1069:7: error: implicit declaration of function 'test_bit_acquire'; did you mean 'test_bit_le'? [-Werror=implicit-function-declaration] if (!test_bit_acquire(bit, word)) ^~~~~~~~~~~~~~~~ test_bit_le cc1: some warnings being treated as errors make[2]: *** [./Kbuild:57: arch/arc/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1081: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:152: sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +1069 include/linux/wait.h 1048 1049 /** 1050 * wait_on_bit - wait for a bit to be cleared 1051 * @word: the word being waited on, a kernel virtual address 1052 * @bit: the bit of the word being waited on 1053 * @mode: the task state to sleep in 1054 * 1055 * There is a standard hashed waitqueue table for generic use. This 1056 * is the part of the hashtable's accessor API that waits on a bit. 1057 * For instance, if one were to have waiters on a bitflag, one would 1058 * call wait_on_bit() in threads waiting for the bit to clear. 1059 * One uses wait_on_bit() where one is waiting for the bit to clear, 1060 * but has no intention of setting it. 1061 * Returned value will be zero if the bit was cleared, or non-zero 1062 * if the process received a signal and the mode permitted wakeup 1063 * on that signal. 1064 */ 1065 static inline int 1066 wait_on_bit(unsigned long *word, int bit, unsigned mode) 1067 { 1068 might_sleep(); > 1069 if (!test_bit_acquire(bit, word)) 1070 return 0; 1071 return out_of_line_wait_on_bit(word, bit, 1072 bit_wait, 1073 mode); 1074 } 1075 -- 0-DAY CI Kernel Test Service https://01.org/lkp