tree:
https://github.com/zen-kernel/zen-kernel 5.14/prjc
head: d549588e3d79002f0c4b567b49644318af78a3db
commit: f746b5817d3274fa4f458f87f6b452e7304b1d64 [1/209] Project C v5.7.5-r2
config: nios2-allyesconfig (attached as .config)
compiler: nios2-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/f746b5817d3274fa4f458f87f...
git remote add zen-kernel-zen-kernel
https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 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=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
| 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
In file included from include/asm-generic/bug.h:7,
from ./arch/nios2/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/thread_info.h:13,
from include/asm-generic/current.h:5,
from ./arch/nios2/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 '__might_sleep':
kernel/sched/alt_core.c:5637:28: error: 'struct task_struct' has no member
named 'state'; did you mean '__state'?
5637 | WARN_ONCE(current->state != TASK_RUNNING &&
current->task_state_change,
| ^~~~~
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:5637:9: note: in expansion of macro 'WARN_ONCE'
5637 | WARN_ONCE(current->state != TASK_RUNNING &&
current->task_state_change,
| ^~~~~~~~~
In file included from ./arch/nios2/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/thread_info.h:13,
from include/asm-generic/current.h:5,
from ./arch/nios2/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:5640:34: error: 'struct task_struct' has no member
named 'state'; did you mean '__state'?
5640 | current->state,
| ^~~~~
include/asm-generic/bug.h:91:62: note: in definition of macro '__WARN_printf'
91 | warn_slowpath_fmt(__FILE__, __LINE__, taint, arg); \
| ^~~
include/linux/once_lite.h:19:25: note: in expansion of macro 'WARN'
19 | func(__VA_ARGS__); \
| ^~~~
include/asm-generic/bug.h:150:9: note: in expansion of macro 'DO_ONCE_LITE_IF'
150 | DO_ONCE_LITE_IF(condition, WARN, 1, format)
| ^~~~~~~~~~~~~~~
kernel/sched/alt_core.c:5637:9: note: in expansion of macro 'WARN_ONCE'
5637 | WARN_ONCE(current->state != TASK_RUNNING &&
current->task_state_change,
| ^~~~~~~~~
kernel/sched/alt_core.c: In function '___might_sleep':
> kernel/sched/alt_core.c:5653:23: warning: variable
'preempt_disable_ip' set but not used [-Wunused-but-set-variable]
5653 |
unsigned long preempt_disable_ip;
| ^~~~~~~~~~~~~~~~~~
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 +/preempt_disable_ip +5653 kernel/sched/alt_core.c
5647
5648 void ___might_sleep(const char *file, int line, int preempt_offset)
5649 {
5650 /* Ratelimiting timestamp: */
5651 static unsigned long prev_jiffy;
5652
5653 unsigned long preempt_disable_ip;
5654
5655 /* WARN_ON_ONCE() by default, no rate limit required: */
5656 rcu_sleep_check();
5657
5658 if ((preempt_count_equals(preempt_offset) && !irqs_disabled() &&
5659 !is_idle_task(current) && !current->non_block_count) ||
5660 system_state == SYSTEM_BOOTING || system_state > SYSTEM_RUNNING ||
5661 oops_in_progress)
5662 return;
5663 if (time_before(jiffies, prev_jiffy + HZ) && prev_jiffy)
5664 return;
5665 prev_jiffy = jiffies;
5666
5667 /* Save this before calling printk(), since that will clobber it: */
5668 preempt_disable_ip = get_preempt_disable_ip(current);
5669
5670 printk(KERN_ERR
5671 "BUG: sleeping function called from invalid context at %s:%d\n",
5672 file, line);
5673 printk(KERN_ERR
5674 "in_atomic(): %d, irqs_disabled(): %d, non_block: %d, pid: %d, name:
%s\n",
5675 in_atomic(), irqs_disabled(), current->non_block_count,
5676 current->pid, current->comm);
5677
5678 if (task_stack_end_corrupted(current))
5679 printk(KERN_EMERG "Thread overran stack, or stack corrupted\n");
5680
5681 debug_show_held_locks(current);
5682 if (irqs_disabled())
5683 print_irqtrace_events(current);
5684 #ifdef CONFIG_DEBUG_PREEMPT
5685 if (!preempt_count_equals(preempt_offset)) {
5686 pr_err("Preemption disabled at:");
5687 print_ip_sym(preempt_disable_ip);
5688 pr_cont("\n");
5689 }
5690 #endif
5691 dump_stack();
5692 add_taint(TAINT_WARN, LOCKDEP_STILL_OK);
5693 }
5694 EXPORT_SYMBOL(___might_sleep);
5695
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org