tree: https://github.com/ammarfaizi2/linux-block paulmck/linux-rcu/dev head: 636c9bc361b1f0acdb57c2b0deb131ea57896cc9 commit: f1c73cc03a10ba8300792eb9cbd0686614efd2b2 [39/42] rcu-tasks: Report stalls during synchronize_srcu() in rcu_tasks_postscan() config: x86_64-randconfig-a013 compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 reproduce (this is a W=1 build): # https://github.com/ammarfaizi2/linux-block/commit/f1c73cc03a10ba8300792eb9cbd0686614efd2b2 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block paulmck/linux-rcu/dev git checkout f1c73cc03a10ba8300792eb9cbd0686614efd2b2 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 olddefconfig make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot Note: the ammarfaizi2-block/paulmck/linux-rcu/dev HEAD 636c9bc361b1f0acdb57c2b0deb131ea57896cc9 builds fine. It only hurts bisectability. All errors (new ones prefixed by >>): In file included from include/linux/kernel.h:29, from kernel/rcu/update.c:21: kernel/rcu/tasks.h: In function 'tasks_rcu_exit_srcu_stall': >> kernel/rcu/tasks.h:944:17: error: implicit declaration of function 'tasks_gp_state_getname' [-Werror=implicit-function-declaration] 944 | tasks_gp_state_getname(&rcu_tasks), jiffies - rcu_tasks.gp_jiffies); | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:429:33: note: in definition of macro 'printk_index_wrap' 429 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/printk.h:530:9: note: in expansion of macro 'printk' 530 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~ kernel/rcu/tasks.h:942:9: note: in expansion of macro 'pr_info' 942 | pr_info("%s: %s grace period number %lu (since boot) gp_state: %s is %lu jiffies old.\n", | ^~~~~~~ include/linux/kern_levels.h:5:25: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Wformat=] 5 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/printk.h:429:25: note: in definition of macro 'printk_index_wrap' 429 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ include/linux/printk.h:530:9: note: in expansion of macro 'printk' 530 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~ include/linux/kern_levels.h:14:25: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ include/linux/printk.h:530:16: note: in expansion of macro 'KERN_INFO' 530 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~ kernel/rcu/tasks.h:942:9: note: in expansion of macro 'pr_info' 942 | pr_info("%s: %s grace period number %lu (since boot) gp_state: %s is %lu jiffies old.\n", | ^~~~~~~ cc1: some warnings being treated as errors vim +/tasks_gp_state_getname +944 kernel/rcu/tasks.h 937 938 static void tasks_rcu_exit_srcu_stall(struct timer_list *unused) 939 { 940 int rtsi = READ_ONCE(rcu_task_stall_info); 941 942 pr_info("%s: %s grace period number %lu (since boot) gp_state: %s is %lu jiffies old.\n", 943 __func__, rcu_tasks.kname, rcu_tasks.tasks_gp_seq, > 944 tasks_gp_state_getname(&rcu_tasks), jiffies - rcu_tasks.gp_jiffies); 945 pr_info("Please check any exiting tasks stuck between calls to exit_tasks_rcu_start() and exit_tasks_rcu_finish()\n"); 946 tasks_rcu_exit_srcu_stall_timer.expires = jiffies + rtsi; 947 add_timer(&tasks_rcu_exit_srcu_stall_timer); 948 } 949 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests