tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git queue/4.14 head: 4f2582cd013d90e97937be69a10ce7c7df1fb9ad commit: efbc1cf0f1b9fe44a0f43c07de2359216592b45f [23/36] wait_on_bit: add an acquire memory barrier config: h8300-buildonly-randconfig-r005-20221010 compiler: h8300-linux-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://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=efbc1cf0f1b9fe44a0f43c07de2359216592b45f git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git git fetch --no-tags linux-stable-rc queue/4.14 git checkout efbc1cf0f1b9fe44a0f43c07de2359216592b45f # 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=h8300 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/fs.h:6:0, from include/linux/huge_mm.h:7, from include/linux/mm.h:453, from include/linux/pid_namespace.h:7, from include/linux/ptrace.h:10, from arch/h8300/kernel/asm-offsets.c:15: include/linux/wait_bit.h: In function 'wait_on_bit': >> include/linux/wait_bit.h:79: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:58: arch/h8300/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1101: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:146: sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +79 include/linux/wait_bit.h 58 59 /** 60 * wait_on_bit - wait for a bit to be cleared 61 * @word: the word being waited on, a kernel virtual address 62 * @bit: the bit of the word being waited on 63 * @mode: the task state to sleep in 64 * 65 * There is a standard hashed waitqueue table for generic use. This 66 * is the part of the hashtable's accessor API that waits on a bit. 67 * For instance, if one were to have waiters on a bitflag, one would 68 * call wait_on_bit() in threads waiting for the bit to clear. 69 * One uses wait_on_bit() where one is waiting for the bit to clear, 70 * but has no intention of setting it. 71 * Returned value will be zero if the bit was cleared, or non-zero 72 * if the process received a signal and the mode permitted wakeup 73 * on that signal. 74 */ 75 static inline int 76 wait_on_bit(unsigned long *word, int bit, unsigned mode) 77 { 78 might_sleep(); > 79 if (!test_bit_acquire(bit, word)) 80 return 0; 81 return out_of_line_wait_on_bit(word, bit, 82 bit_wait, 83 mode); 84 } 85 -- 0-DAY CI Kernel Test Service https://01.org/lkp