tree: https://github.com/zen-kernel/zen-kernel 5.14/prjc head: a74cb46b3e41b71e5eb452467ef2000188afe8d7 commit: f746b5817d3274fa4f458f87f6b452e7304b1d64 [1/221] Project C v5.7.5-r2 config: mips-randconfig-r012-20210927 (attached as .config) compiler: mips-linux-gcc (GCC) 11.2.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/zen-kernel/zen-kernel/commit/f746b5817d3274fa4f458f87f6b452e7304b1d64 git remote add zen https://github.com/zen-kernel/zen-kernel git fetch --no-tags zen 5.14/prjc git checkout f746b5817d3274fa4f458f87f6b452e7304b1d64 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from kernel/sched/alt_core.c:191: kernel/sched/alt_core.c: In function 'dequeue_task': kernel/sched/bmq_imp.h:52:9: error: implicit declaration of function 'sched_info_dequeued'; did you mean 'sched_info_dequeue'? [-Werror=implicit-function-declaration] 52 | sched_info_dequeued(rq, p); \ | ^~~~~~~~~~~~~~~~~~~ kernel/sched/alt_core.c:444:9: note: in expansion of macro '__SCHED_DEQUEUE_TASK' 444 | __SCHED_DEQUEUE_TASK(p, rq, flags, update_sched_rq_watermark(rq)); | ^~~~~~~~~~~~~~~~~~~~ kernel/sched/alt_core.c: In function 'enqueue_task': kernel/sched/bmq_imp.h:61:9: error: implicit declaration of function 'sched_info_queued'; did you mean 'sched_info_enqueue'? [-Werror=implicit-function-declaration] 61 | sched_info_queued(rq, p); \ | ^~~~~~~~~~~~~~~~~ kernel/sched/alt_core.c:461:9: note: in expansion of macro '__SCHED_ENQUEUE_TASK' 461 | __SCHED_ENQUEUE_TASK(p, rq, flags); | ^~~~~~~~~~~~~~~~~~~~ kernel/sched/alt_core.c: At top level: >> kernel/sched/alt_core.c:652:6: warning: no previous prototype for 'resched_curr' [-Wmissing-prototypes] 652 | void resched_curr(struct rq *rq) | ^~~~~~~~~~~~ >> kernel/sched/alt_core.c:675:6: warning: no previous prototype for 'resched_cpu' [-Wmissing-prototypes] 675 | void resched_cpu(int cpu) | ^~~~~~~~~~~ >> kernel/sched/alt_core.c:883:6: warning: no previous prototype for 'hrtick_start' [-Wmissing-prototypes] 883 | void hrtick_start(struct rq *rq, u64 delay) | ^~~~~~~~~~~~ kernel/sched/alt_core.c: In function 'activate_task': kernel/sched/alt_core.c:955:13: error: implicit declaration of function 'task_contributes_to_load' [-Werror=implicit-function-declaration] 955 | if (task_contributes_to_load(p)) | ^~~~~~~~~~~~~~~~~~~~~~~~ kernel/sched/alt_core.c: In function 'ttwu_do_wakeup': kernel/sched/alt_core.c:1578:12: error: 'struct task_struct' has no member named 'state'; did you mean '__state'? 1578 | p->state = TASK_RUNNING; | ^~~~~ | __state kernel/sched/alt_core.c: In function 'try_to_wake_up': kernel/sched/alt_core.c:1793:26: error: 'struct task_struct' has no member named 'state'; did you mean '__state'? 1793 | if (!(p->state & state)) | ^~~~~ | __state kernel/sched/alt_core.c:1799:20: error: 'struct task_struct' has no member named 'state'; did you mean '__state'? 1799 | p->state = TASK_RUNNING; | ^~~~~ | __state kernel/sched/alt_core.c:1812:18: error: 'struct task_struct' has no member named 'state'; did you mean '__state'? 1812 | if (!(p->state & state)) | ^~~~~ | __state kernel/sched/alt_core.c: In function 'sched_fork': kernel/sched/alt_core.c:1973:12: error: 'struct task_struct' has no member named 'state'; did you mean '__state'? 1973 | p->state = TASK_NEW; | ^~~~~ | __state kernel/sched/alt_core.c: In function 'wake_up_new_task': kernel/sched/alt_core.c:2136:12: error: 'struct task_struct' has no member named 'state'; did you mean '__state'? 2136 | p->state = TASK_RUNNING; | ^~~~~ | __state kernel/sched/alt_core.c: In function 'finish_task_switch': kernel/sched/alt_core.c:2384:28: error: 'struct task_struct' has no member named 'state'; did you mean '__state'? 2384 | prev_state = prev->state; | ^~~~~ | __state kernel/sched/alt_core.c: In function 'schedule_tail': kernel/sched/alt_core.c:2433:20: warning: variable 'rq' set but not used [-Wunused-but-set-variable] 2433 | struct rq *rq; | ^~ kernel/sched/alt_core.c: At top level: kernel/sched/alt_core.c:2518:15: error: conflicting types for 'nr_running'; have 'long unsigned int(void)' 2518 | unsigned long nr_running(void) | ^~~~~~~~~~ In file included from kernel/sched/alt_sched.h:16, from kernel/sched/sched.h:6, from kernel/sched/alt_core.c:14: include/linux/sched/stat.h:20:21: note: previous declaration of 'nr_running' with type 'unsigned int(void)' 20 | extern unsigned int nr_running(void); | ^~~~~~~~~~ kernel/sched/alt_core.c:2565:15: error: conflicting types for 'nr_iowait_cpu'; have 'long unsigned int(int)' 2565 | unsigned long nr_iowait_cpu(int cpu) | ^~~~~~~~~~~~~ In file included from kernel/sched/alt_sched.h:16, from kernel/sched/sched.h:6, from kernel/sched/alt_core.c:14: include/linux/sched/stat.h:23:21: note: previous declaration of 'nr_iowait_cpu' with type 'unsigned int(int)' 23 | extern unsigned int nr_iowait_cpu(int cpu); | ^~~~~~~~~~~~~ kernel/sched/alt_core.c:2600:15: error: conflicting types for 'nr_iowait'; have 'long unsigned int(void)' 2600 | unsigned long nr_iowait(void) | ^~~~~~~~~ In file included from kernel/sched/alt_sched.h:16, from kernel/sched/sched.h:6, from kernel/sched/alt_core.c:14: include/linux/sched/stat.h:22:21: note: previous declaration of 'nr_iowait' with type 'unsigned int(void)' 22 | extern unsigned int nr_iowait(void); | ^~~~~~~~~ kernel/sched/alt_core.c:2706:6: error: conflicting types for 'arch_set_thermal_pressure'; have 'void(struct cpumask *, long unsigned int)' 2706 | void arch_set_thermal_pressure(struct cpumask *cpus, | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from kernel/sched/alt_sched.h:19, from kernel/sched/sched.h:6, from kernel/sched/alt_core.c:14: include/linux/sched/topology.h:264:6: note: previous definition of 'arch_set_thermal_pressure' with type 'void(const struct cpumask *, long unsigned int)' 264 | void arch_set_thermal_pressure(const struct cpumask *cpus, | ^~~~~~~~~~~~~~~~~~~~~~~~~ kernel/sched/alt_core.c: In function 'scheduler_tick': kernel/sched/alt_core.c:2753:9: error: implicit declaration of function 'psi_task_tick'; did you mean 'put_task_stack'? [-Werror=implicit-function-declaration] 2753 | psi_task_tick(rq); | ^~~~~~~~~~~~~ | put_task_stack kernel/sched/alt_core.c: In function '__schedule_bug': kernel/sched/alt_core.c:3097:30: warning: passing argument 1 of 'print_ip_sym' makes pointer from integer without a cast [-Wint-conversion] 3097 | print_ip_sym(preempt_disable_ip); | ^~~~~~~~~~~~~~~~~~ | | | long unsigned int In file included from include/linux/bpf.h:20, from include/linux/bpf-cgroup.h:5, from include/linux/cgroup-defs.h:22, from include/linux/cgroup.h:28, from kernel/sched/alt_sched.h:24, from kernel/sched/sched.h:6, from kernel/sched/alt_core.c:14: include/linux/kallsyms.h:177:45: note: expected 'const char *' but argument is of type 'long unsigned int' 177 | static inline void print_ip_sym(const char *loglvl, unsigned long ip) -- 177 | static inline void print_ip_sym(const char *loglvl, unsigned long ip) | ^~~~~~~~~~~~ kernel/sched/alt_core.c: In function '__schedule': kernel/sched/alt_core.c:3357:31: error: 'struct task_struct' has no member named 'state'; did you mean '__state'? 3357 | if (!preempt && prev->state) { | ^~~~~ | __state kernel/sched/alt_core.c:3358:48: error: 'struct task_struct' has no member named 'state'; did you mean '__state'? 3358 | if (signal_pending_state(prev->state, prev)) { | ^~~~~ | __state kernel/sched/alt_core.c:3359:31: error: 'struct task_struct' has no member named 'state'; did you mean '__state'? 3359 | prev->state = TASK_RUNNING; | ^~~~~ | __state kernel/sched/alt_core.c: In function 'sched_submit_work': kernel/sched/alt_core.c:3438:19: error: 'struct task_struct' has no member named 'state'; did you mean '__state'? 3438 | if (!tsk->state) | ^~~~~ | __state In file included from include/asm-generic/bug.h:7, from arch/mips/include/asm/bug.h:42, from include/linux/bug.h:5, from include/linux/thread_info.h:13, from include/asm-generic/current.h:5, from ./arch/mips/include/generated/asm/current.h:1, from include/linux/sched.h:12, from kernel/sched/alt_sched.h:4, from kernel/sched/sched.h:6, from kernel/sched/alt_core.c:14: kernel/sched/alt_core.c: In function 'schedule_idle': kernel/sched/alt_core.c:3512:31: error: 'struct task_struct' has no member named 'state'; did you mean '__state'? 3512 | WARN_ON_ONCE(current->state); | ^~~~~ include/linux/once_lite.h:15:41: note: in definition of macro 'DO_ONCE_LITE_IF' 15 | bool __ret_do_once = !!(condition); \ | ^~~~~~~~~ kernel/sched/alt_core.c:3512:9: note: in expansion of macro 'WARN_ON_ONCE' 3512 | WARN_ON_ONCE(current->state); | ^~~~~~~~~~~~ kernel/sched/alt_core.c: In function '__sched_setscheduler': kernel/sched/alt_core.c:4031:46: error: 'MAX_USER_RT_PRIO' undeclared (first use in this function); did you mean 'MAX_RT_PRIO'? 4031 | (p->mm && attr->sched_priority > MAX_USER_RT_PRIO - 1) || | ^~~~~~~~~~~~~~~~ | MAX_RT_PRIO kernel/sched/alt_core.c:4031:46: note: each undeclared identifier is reported only once for each function it appears in kernel/sched/alt_core.c: At top level: kernel/sched/alt_core.c:4749:13: error: redefinition of '_cond_resched' 4749 | int __sched _cond_resched(void) | ^~~~~~~~~~~~~ In file included from kernel/sched/alt_sched.h:4, from kernel/sched/sched.h:6, from kernel/sched/alt_core.c:14: include/linux/sched.h:1948:19: note: previous definition of '_cond_resched' with type 'int(void)' 1948 | static inline int _cond_resched(void) | ^~~~~~~~~~~~~ kernel/sched/alt_core.c: In function '__do_sys_sched_get_priority_max': kernel/sched/alt_core.c:4902:23: error: 'MAX_USER_RT_PRIO' undeclared (first use in this function); did you mean 'MAX_RT_PRIO'? 4902 | ret = MAX_USER_RT_PRIO-1; | ^~~~~~~~~~~~~~~~ | MAX_RT_PRIO kernel/sched/alt_core.c: In function 'sched_show_task': kernel/sched/alt_core.c:5010:16: error: 'struct task_struct' has no member named 'state'; did you mean '__state'? 5010 | if (p->state == TASK_RUNNING) | ^~~~~ | __state kernel/sched/alt_core.c:5025:9: error: too few arguments to function 'show_stack' 5025 | show_stack(p, NULL); | ^~~~~~~~~~ In file included from kernel/sched/alt_sched.h:9, from kernel/sched/sched.h:6, from kernel/sched/alt_core.c:14: include/linux/sched/debug.h:33:13: note: declared here 33 | extern void show_stack(struct task_struct *task, unsigned long *sp, | ^~~~~~~~~~ kernel/sched/alt_core.c: In function 'state_filter_match': kernel/sched/alt_core.c:5038:18: error: 'struct task_struct' has no member named 'state'; did you mean '__state'? 5038 | if (!(p->state & state_filter)) | ^~~~~ | __state kernel/sched/alt_core.c:5045:56: error: 'struct task_struct' has no member named 'state'; did you mean '__state'? 5045 | if (state_filter == TASK_UNINTERRUPTIBLE && p->state == TASK_IDLE) | ^~~~~ | __state kernel/sched/alt_core.c: At top level: kernel/sched/alt_core.c:5052:6: error: conflicting types for 'show_state_filter'; have 'void(long unsigned int)' 5052 | void show_state_filter(unsigned long state_filter) | ^~~~~~~~~~~~~~~~~ In file included from kernel/sched/alt_sched.h:9, from kernel/sched/sched.h:6, from kernel/sched/alt_core.c:14: include/linux/sched/debug.h:17:13: note: previous declaration of 'show_state_filter' with type 'void(unsigned int)' 17 | extern void show_state_filter(unsigned int state_filter); | ^~~~~~~~~~~~~~~~~ kernel/sched/alt_core.c: In function 'init_idle': kernel/sched/alt_core.c:5118:15: error: 'struct task_struct' has no member named 'state'; did you mean '__state'? 5118 | idle->state = TASK_RUNNING; | ^~~~~ | __state kernel/sched/alt_core.c: At top level: >> kernel/sched/alt_core.c:5813:20: warning: no previous prototype for 'sched_create_group' [-Wmissing-prototypes] 5813 | struct task_group *sched_create_group(struct task_group *parent) | ^~~~~~~~~~~~~~~~~~ >> kernel/sched/alt_core.c:5824:6: warning: no previous prototype for 'sched_online_group' [-Wmissing-prototypes] 5824 | void sched_online_group(struct task_group *tg, struct task_group *parent) | ^~~~~~~~~~~~~~~~~~ >> kernel/sched/alt_core.c:5835:6: warning: no previous prototype for 'sched_destroy_group' [-Wmissing-prototypes] 5835 | void sched_destroy_group(struct task_group *tg) | ^~~~~~~~~~~~~~~~~~~ >> kernel/sched/alt_core.c:5841:6: warning: no previous prototype for 'sched_offline_group' [-Wmissing-prototypes] 5841 | void sched_offline_group(struct task_group *tg) | ^~~~~~~~~~~~~~~~~~~ >> kernel/sched/alt_core.c:5933:27: warning: initialized field overwritten [-Woverride-init] 5933 | .legacy_cftypes = cpu_legacy_files, | ^~~~~~~~~~~~~~~~ kernel/sched/alt_core.c:5933:27: note: (near initialization for 'cpu_cgrp_subsys.legacy_cftypes') kernel/sched/alt_core.c:142:18: warning: 'sched_sg_idle_mask' defined but not used [-Wunused-variable] 142 | static cpumask_t sched_sg_idle_mask ____cacheline_aligned_in_smp; | ^~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/resched_curr +652 kernel/sched/alt_core.c 644 645 /* 646 * resched_curr - mark rq's current task 'to be rescheduled now'. 647 * 648 * On UP this means the setting of the need_resched flag, on SMP it 649 * might also involve a cross-CPU call to trigger the scheduler on 650 * the target CPU. 651 */ > 652 void resched_curr(struct rq *rq) 653 { 654 struct task_struct *curr = rq->curr; 655 int cpu; 656 657 lockdep_assert_held(&rq->lock); 658 659 if (test_tsk_need_resched(curr)) 660 return; 661 662 cpu = cpu_of(rq); 663 if (cpu == smp_processor_id()) { 664 set_tsk_need_resched(curr); 665 set_preempt_need_resched(); 666 return; 667 } 668 669 if (set_nr_and_not_polling(curr)) 670 smp_send_reschedule(cpu); 671 else 672 trace_sched_wake_idle_without_ipi(cpu); 673 } 674 > 675 void resched_cpu(int cpu) 676 { 677 struct rq *rq = cpu_rq(cpu); 678 unsigned long flags; 679 680 raw_spin_lock_irqsave(&rq->lock, flags); 681 if (cpu_online(cpu) || cpu == smp_processor_id()) 682 resched_curr(cpu_rq(cpu)); 683 raw_spin_unlock_irqrestore(&rq->lock, flags); 684 } 685 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org