tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2 head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324 commit: 40962503e2b9bddcef82fba70374b464ee9867b1 [12/364] sched/headers: Move thread_info APIs to config: ia64-allmodconfig (attached as .config) compiler: ia64-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://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=40962503e2b9bddcef82fba70374b464ee9867b1 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 40962503e2b9bddcef82fba70374b464ee9867b1 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 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 ./arch/ia64/include/generated/asm/preempt.h:1, from include/linux/preempt.h:80, from include/linux/rcupdate.h:29, from include/linux/rculist.h:11, from include/linux/sched/signal.h:7, from arch/ia64/kernel/asm-offsets.c:10: include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test': include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration] 69 | return !--*preempt_count_ptr() && tif_need_resched(); | ^~~~~~~~~~~~~~~~ In file included from include/linux/sched/signal.h:12, from arch/ia64/kernel/asm-offsets.c:10: include/linux/sched/thread_info_api.h: At top level: >> include/linux/sched/thread_info_api.h:33:59: error: macro "current_thread_info" passed 1 arguments, but takes just 0 33 | static inline struct thread_info *current_thread_info(void) | ^ In file included from include/linux/thread_info.h:50, from include/asm-generic/preempt.h:5, from ./arch/ia64/include/generated/asm/preempt.h:1, from include/linux/preempt.h:80, from include/linux/rcupdate.h:29, from include/linux/rculist.h:11, from include/linux/sched/signal.h:7, from arch/ia64/kernel/asm-offsets.c:10: arch/ia64/include/asm/thread_info.h:62: note: macro "current_thread_info" defined here 62 | #define current_thread_info() ((struct thread_info *) 0) | In file included from include/linux/sched/signal.h:12, from arch/ia64/kernel/asm-offsets.c:10: >> include/linux/sched/thread_info_api.h:34:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 34 | { | ^ arch/ia64/kernel/asm-offsets.c:23:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes] 23 | void foo(void) | ^~~ cc1: some warnings being treated as errors -- In file included from ./arch/ia64/include/generated/asm/preempt.h:1, from include/linux/preempt.h:80, from include/linux/rcupdate.h:29, from include/linux/rculist.h:11, from include/linux/sched/signal.h:7, from arch/ia64/kernel/asm-offsets.c:10: include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test': include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration] 69 | return !--*preempt_count_ptr() && tif_need_resched(); | ^~~~~~~~~~~~~~~~ In file included from include/linux/sched/signal.h:12, from arch/ia64/kernel/asm-offsets.c:10: include/linux/sched/thread_info_api.h: At top level: >> include/linux/sched/thread_info_api.h:33:59: error: macro "current_thread_info" passed 1 arguments, but takes just 0 33 | static inline struct thread_info *current_thread_info(void) | ^ In file included from include/linux/thread_info.h:50, from include/asm-generic/preempt.h:5, from ./arch/ia64/include/generated/asm/preempt.h:1, from include/linux/preempt.h:80, from include/linux/rcupdate.h:29, from include/linux/rculist.h:11, from include/linux/sched/signal.h:7, from arch/ia64/kernel/asm-offsets.c:10: arch/ia64/include/asm/thread_info.h:62: note: macro "current_thread_info" defined here 62 | #define current_thread_info() ((struct thread_info *) 0) | In file included from include/linux/sched/signal.h:12, from arch/ia64/kernel/asm-offsets.c:10: >> include/linux/sched/thread_info_api.h:34:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 34 | { | ^ arch/ia64/kernel/asm-offsets.c:23:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes] 23 | void foo(void) | ^~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:117: arch/ia64/kernel/asm-offsets.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 ./arch/ia64/include/generated/asm/preempt.h:1, from include/linux/preempt.h:80, from include/linux/rcupdate.h:29, from include/linux/rculist.h:11, from include/linux/sched/signal.h:7, from arch/ia64/kernel/asm-offsets.c:10: include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test': include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration] 69 | return !--*preempt_count_ptr() && tif_need_resched(); | ^~~~~~~~~~~~~~~~ In file included from include/linux/sched/signal.h:12, from arch/ia64/kernel/asm-offsets.c:10: include/linux/sched/thread_info_api.h: At top level: >> include/linux/sched/thread_info_api.h:33:59: error: macro "current_thread_info" passed 1 arguments, but takes just 0 33 | static inline struct thread_info *current_thread_info(void) | ^ In file included from include/linux/thread_info.h:50, from include/asm-generic/preempt.h:5, from ./arch/ia64/include/generated/asm/preempt.h:1, from include/linux/preempt.h:80, from include/linux/rcupdate.h:29, from include/linux/rculist.h:11, from include/linux/sched/signal.h:7, from arch/ia64/kernel/asm-offsets.c:10: arch/ia64/include/asm/thread_info.h:62: note: macro "current_thread_info" defined here 62 | #define current_thread_info() ((struct thread_info *) 0) | In file included from include/linux/sched/signal.h:12, from arch/ia64/kernel/asm-offsets.c:10: >> include/linux/sched/thread_info_api.h:34:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 34 | { | ^ arch/ia64/kernel/asm-offsets.c:23:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes] 23 | void foo(void) | ^~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:117: arch/ia64/kernel/asm-offsets.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 +/current_thread_info +33 include/linux/sched/thread_info_api.h 31 32 # include > 33 static inline struct thread_info *current_thread_info(void) > 34 { 35 return task_thread_info(current); 36 } 37 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org