tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2 head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324 commit: d9c2c90ff3d122ee8c4bf9129c91eb741b5c6463 [253/364] sched/headers: Simplify config: x86_64-randconfig-b001-20210613 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d2012d965d60c3258b3a69d024491698f8aec386) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=d9c2c90ff3d122ee8c4bf9129c91eb741b5c6463 git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git git fetch --no-tags tip tmp.tmp2 git checkout d9c2c90ff3d122ee8c4bf9129c91eb741b5c6463 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from kernel/bounds.c:10: In file included from include/linux/page-flags.h:10: In file included from include/linux/bug.h:5: In file included from arch/x86/include/asm/bug.h:84: In file included from include/asm-generic/bug.h:20: include/linux/kernel.h:72:1: warning: declaration specifier missing, defaulting to 'int' DECLARE_STATIC_CALL(might_resched, __cond_resched); ^ int >> include/linux/kernel.h:72:21: error: a parameter list without types is only allowed in a function definition DECLARE_STATIC_CALL(might_resched, __cond_resched); ^ >> include/linux/kernel.h:76:2: error: implicit declaration of function 'static_call_mod' [-Werror,-Wimplicit-function-declaration] static_call_mod(might_resched)(); ^ >> include/linux/kernel.h:76:32: error: called object type 'int' is not a function or function pointer static_call_mod(might_resched)(); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 1 warning and 3 errors generated. -- In file included from kernel/bounds.c:10: In file included from include/linux/page-flags.h:10: In file included from include/linux/bug.h:5: In file included from arch/x86/include/asm/bug.h:84: In file included from include/asm-generic/bug.h:20: include/linux/kernel.h:72:1: warning: declaration specifier missing, defaulting to 'int' DECLARE_STATIC_CALL(might_resched, __cond_resched); ^ int >> include/linux/kernel.h:72:21: error: a parameter list without types is only allowed in a function definition DECLARE_STATIC_CALL(might_resched, __cond_resched); ^ >> include/linux/kernel.h:76:2: error: implicit declaration of function 'static_call_mod' [-Werror,-Wimplicit-function-declaration] static_call_mod(might_resched)(); ^ >> include/linux/kernel.h:76:32: error: called object type 'int' is not a function or function pointer static_call_mod(might_resched)(); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 1 warning and 3 errors generated. make[2]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1232: prepare0] Error 2 make[1]: Target 'modules_prepare' not remade because of errors. make: *** [Makefile:215: __sub-make] Error 2 make: Target 'modules_prepare' not remade because of errors. -- In file included from kernel/bounds.c:10: In file included from include/linux/page-flags.h:10: In file included from include/linux/bug.h:5: In file included from arch/x86/include/asm/bug.h:84: In file included from include/asm-generic/bug.h:20: include/linux/kernel.h:72:1: warning: declaration specifier missing, defaulting to 'int' DECLARE_STATIC_CALL(might_resched, __cond_resched); ^ int >> include/linux/kernel.h:72:21: error: a parameter list without types is only allowed in a function definition DECLARE_STATIC_CALL(might_resched, __cond_resched); ^ >> include/linux/kernel.h:76:2: error: implicit declaration of function 'static_call_mod' [-Werror,-Wimplicit-function-declaration] static_call_mod(might_resched)(); ^ >> include/linux/kernel.h:76:32: error: called object type 'int' is not a function or function pointer static_call_mod(might_resched)(); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 1 warning and 3 errors generated. make[2]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1232: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:215: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +72 include/linux/kernel.h b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 71) b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 @72) DECLARE_STATIC_CALL(might_resched, __cond_resched); b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 73) b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 74) static __always_inline void might_resched(void) b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 75) { ef72661e28c64a Peter Zijlstra 2021-01-25 @76 static_call_mod(might_resched)(); b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 77) } b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 78) :::::: The code at line 72 was first introduced by commit :::::: b965f1ddb47daa5b8b2e2bc9c921431236830367 preempt/dynamic: Provide cond_resched() and might_resched() static calls :::::: TO: Peter Zijlstra (Intel) :::::: CC: Ingo Molnar --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org