From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [zen:5.15/master 1/313] kernel/sched/alt_core.c:652:6: error: no previous prototype for 'resched_curr'
Date: Fri, 05 Nov 2021 21:50:04 +0800 [thread overview]
Message-ID: <202111052101.vxFlVI1X-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 32573 bytes --]
tree: https://github.com/zen-kernel/zen-kernel 5.15/master
head: d09fff3d06a50e118870c6eaf35a32313fc69525
commit: cb06db4ef97b1e99a0350d328e6044f374941410 [1/313] Project C v5.7.5-r2
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc-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/cb06db4ef97b1e99a0350d328e6044f374941410
git remote add zen https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen 5.15/master
git checkout cb06db4ef97b1e99a0350d328e6044f374941410
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (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: error: no previous prototype for 'resched_curr' [-Werror=missing-prototypes]
652 | void resched_curr(struct rq *rq)
| ^~~~~~~~~~~~
>> kernel/sched/alt_core.c:675:6: error: no previous prototype for 'resched_cpu' [-Werror=missing-prototypes]
675 | void resched_cpu(int cpu)
| ^~~~~~~~~~~
>> kernel/sched/alt_core.c:692:6: error: no previous prototype for 'select_nohz_load_balancer' [-Werror=missing-prototypes]
692 | void select_nohz_load_balancer(int stop_tick)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/sched/alt_core.c:696:6: error: no previous prototype for 'set_cpu_sd_state_idle' [-Werror=missing-prototypes]
696 | void set_cpu_sd_state_idle(void) {}
| ^~~~~~~~~~~~~~~~~~~~~
>> kernel/sched/alt_core.c:856:6: error: no previous prototype for 'hrtick_start' [-Werror=missing-prototypes]
856 | void hrtick_start(struct rq *rq, u64 delay)
| ^~~~~~~~~~~~
kernel/sched/alt_core.c: In function 'hrtick_rq_init':
kernel/sched/alt_core.c:898:23: error: 'call_single_data_t' {aka 'struct __call_single_data'} has no member named 'flags'
898 | rq->hrtick_csd.flags = 0;
| ^
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))
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/powerpc/include/asm/bug.h:149,
from include/linux/bug.h:5,
from arch/powerpc/include/asm/cmpxchg.h:8,
from arch/powerpc/include/asm/atomic.h:11,
from include/linux/atomic.h:7,
from include/linux/rcupdate.h:25,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
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 'set_task_cpu':
kernel/sched/alt_core.c:1002:25: error: 'struct task_struct' has no member named 'state'; did you mean '__state'?
1002 | WARN_ON_ONCE(p->state != TASK_RUNNING && p->state != TASK_WAKING &&
| ^~~~~
include/asm-generic/bug.h:104:32: note: in definition of macro 'WARN_ON_ONCE'
104 | int __ret_warn_on = !!(condition); \
| ^~~~~~~~~
kernel/sched/alt_core.c:1002:53: error: 'struct task_struct' has no member named 'state'; did you mean '__state'?
1002 | WARN_ON_ONCE(p->state != TASK_RUNNING && p->state != TASK_WAKING &&
| ^~~~~
include/asm-generic/bug.h:104:32: note: in definition of macro 'WARN_ON_ONCE'
104 | int __ret_warn_on = !!(condition); \
| ^~~~~~~~~
kernel/sched/alt_core.c: At top level:
kernel/sched/alt_core.c:1188:15: error: conflicting types for 'wait_task_inactive'; have 'long unsigned int(struct task_struct *, long int)'
1188 | unsigned long wait_task_inactive(struct task_struct *p, long match_state)
| ^~~~~~~~~~~~~~~~~~
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:1977:22: note: previous declaration of 'wait_task_inactive' with type 'long unsigned int(struct task_struct *, unsigned int)'
1977 | extern unsigned long wait_task_inactive(struct task_struct *, unsigned int match_state);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/rculist.h:10,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
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 'wait_task_inactive':
kernel/sched/alt_core.c:1211:56: error: 'struct task_struct' has no member named 'state'; did you mean '__state'?
1211 | if (match_state && unlikely(p->state != match_state))
| ^~~~~
include/linux/compiler.h:78:45: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
kernel/sched/alt_core.c:1226:40: error: 'struct task_struct' has no member named 'state'; did you mean '__state'?
1226 | if (!match_state || p->state == match_state)
| ^~~~~
| __state
kernel/sched/alt_core.c: At top level:
>> kernel/sched/alt_core.c:1409:6: error: no previous prototype for 'sched_set_stop_task' [-Werror=missing-prototypes]
1409 | void sched_set_stop_task(int cpu, struct task_struct *stop)
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/alt_core.c: In function '__set_cpus_allowed_ptr':
kernel/sched/alt_core.c:1501:35: error: 'struct task_struct' has no member named 'state'; did you mean '__state'?
1501 | if (task_running(p) || p->state == TASK_WAKING) {
| ^~~~~
| __state
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: At top level:
kernel/sched/alt_core.c:1611:6: error: redefinition of 'scheduler_ipi'
1611 | void scheduler_ipi(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:1968:29: note: previous definition of 'scheduler_ipi' with type 'void(void)'
1968 | static __always_inline void scheduler_ipi(void)
| ^~~~~~~~~~~~~
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:1879:12: error: 'struct task_struct' has no member named 'state'; did you mean '__state'?
1879 | p->state = TASK_WAKING;
| ^~~~~
| __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: error: variable 'rq' set but not used [-Werror=unused-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 include/linux/energy_model.h:10,
from include/linux/device.h:16,
from arch/powerpc/include/asm/io.h:27,
from include/linux/clocksource.h:22,
from include/linux/clockchips.h:14,
from include/linux/tick.h:8,
from include/linux/sched/isolation.h:6,
from kernel/sched/alt_sched.h:11,
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)'
--
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 arch/powerpc/include/asm/bug.h:149,
from include/linux/bug.h:5,
from arch/powerpc/include/asm/cmpxchg.h:8,
from arch/powerpc/include/asm/atomic.h:11,
from include/linux/atomic.h:7,
from include/linux/rcupdate.h:25,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
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/asm-generic/bug.h:104:32: note: in definition of macro 'WARN_ON_ONCE'
104 | int __ret_warn_on = !!(condition); \
| ^~~~~~~~~
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: In function 'sched_setaffinity':
kernel/sched/alt_core.c:4533:9: error: implicit declaration of function 'get_online_cpus'; did you mean 'get_online_mems'? [-Werror=implicit-function-declaration]
4533 | get_online_cpus();
| ^~~~~~~~~~~~~~~
| get_online_mems
kernel/sched/alt_core.c:4539:17: error: implicit declaration of function 'put_online_cpus'; did you mean 'num_online_cpus'? [-Werror=implicit-function-declaration]
4539 | put_online_cpus();
| ^~~~~~~~~~~~~~~
| num_online_cpus
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:2056:19: note: previous definition of '_cond_resched' with type 'int(void)'
2056 | 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:5191:6: error: no previous prototype for 'idle_task_exit' [-Werror=missing-prototypes]
5191 | void idle_task_exit(void)
| ^~~~~~~~~~~~~~
>> kernel/sched/alt_core.c:5340:5: error: no previous prototype for 'sched_cpu_activate' [-Werror=missing-prototypes]
5340 | int sched_cpu_activate(unsigned int cpu)
| ^~~~~~~~~~~~~~~~~~
>> kernel/sched/alt_core.c:5373:5: error: no previous prototype for 'sched_cpu_deactivate' [-Werror=missing-prototypes]
5373 | int sched_cpu_deactivate(unsigned int cpu)
| ^~~~~~~~~~~~~~~~~~~~
>> kernel/sched/alt_core.c:5416:5: error: no previous prototype for 'sched_cpu_starting' [-Werror=missing-prototypes]
5416 | int sched_cpu_starting(unsigned int cpu)
| ^~~~~~~~~~~~~~~~~~
>> kernel/sched/alt_core.c:5424:5: error: no previous prototype for 'sched_cpu_dying' [-Werror=missing-prototypes]
5424 | int sched_cpu_dying(unsigned int cpu)
| ^~~~~~~~~~~~~~~
kernel/sched/alt_core.c: In function 'sched_init_topology_cpumask':
kernel/sched/alt_core.c:5482:57: error: implicit declaration of function 'cpu_coregroup_mask'; did you mean 'cpu_core_mask'? [-Werror=implicit-function-declaration]
5482 | per_cpu(sd_llc_id, cpu) = cpumask_first(cpu_coregroup_mask(cpu));
| ^~~~~~~~~~~~~~~~~~
| cpu_core_mask
>> kernel/sched/alt_core.c:5482:57: error: passing argument 1 of 'cpumask_first' makes pointer from integer without a cast [-Werror=int-conversion]
5482 | per_cpu(sd_llc_id, cpu) = cpumask_first(cpu_coregroup_mask(cpu));
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from include/linux/smp.h:13,
from include/linux/lockdep.h:14,
from include/linux/rcupdate.h:29,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from kernel/sched/alt_sched.h:4,
from kernel/sched/sched.h:6,
from kernel/sched/alt_core.c:14:
include/linux/cpumask.h:193:64: note: expected 'const struct cpumask *' but argument is of type 'int'
193 | static inline unsigned int cpumask_first(const struct cpumask *srcp)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
>> kernel/sched/alt_core.c:5484:45: error: passing argument 3 of 'cpumask_and' makes pointer from integer without a cast [-Werror=int-conversion]
5484 | TOPOLOGY_CPUMASK(coregroup, cpu_coregroup_mask(cpu), false);
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| int
kernel/sched/alt_core.c:5461:35: note: in definition of macro 'TOPOLOGY_CPUMASK'
5461 | if (cpumask_and(chk, chk, mask)) \
| ^~~~
In file included from include/linux/smp.h:13,
from include/linux/lockdep.h:14,
from include/linux/rcupdate.h:29,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from kernel/sched/alt_sched.h:4,
from kernel/sched/sched.h:6,
from kernel/sched/alt_core.c:14:
include/linux/cpumask.h:403:54: note: expected 'const struct cpumask *' but argument is of type 'int'
403 | const struct cpumask *src2p)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~
>> kernel/sched/alt_core.c:5484:45: error: passing argument 2 of 'cpumask_complement' makes pointer from integer without a cast [-Werror=int-conversion]
5484 | TOPOLOGY_CPUMASK(coregroup, cpu_coregroup_mask(cpu), false);
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| int
kernel/sched/alt_core.c:5465:41: note: in definition of macro 'TOPOLOGY_CPUMASK'
5465 | cpumask_complement(chk, mask)
| ^~~~
In file included from include/linux/smp.h:13,
from include/linux/lockdep.h:14,
from include/linux/rcupdate.h:29,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from kernel/sched/alt_sched.h:4,
from kernel/sched/sched.h:6,
from kernel/sched/alt_core.c:14:
include/linux/cpumask.h:458:61: note: expected 'const struct cpumask *' but argument is of type 'int'
458 | const struct cpumask *srcp)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from include/linux/printk.h:11,
from include/linux/kernel.h:19,
from include/linux/list.h:9,
from include/linux/rculist.h:10,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
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/powerpc/include/asm/bug.h:149,
from include/linux/bug.h:5,
from arch/powerpc/include/asm/cmpxchg.h:8,
from arch/powerpc/include/asm/atomic.h:11,
from include/linux/atomic.h:7,
from include/linux/rcupdate.h:25,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
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:99:31: note: in definition of macro '__WARN_printf'
99 | __warn_printk(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: error: variable 'preempt_disable_ip' set but not used [-Werror=unused-but-set-variable]
5653 | unsigned long preempt_disable_ip;
| ^~~~~~~~~~~~~~~~~~
kernel/sched/alt_core.c: At top level:
>> kernel/sched/alt_core.c:5813:20: error: no previous prototype for 'sched_create_group' [-Werror=missing-prototypes]
5813 | struct task_group *sched_create_group(struct task_group *parent)
| ^~~~~~~~~~~~~~~~~~
>> kernel/sched/alt_core.c:5824:6: error: no previous prototype for 'sched_online_group' [-Werror=missing-prototypes]
5824 | void sched_online_group(struct task_group *tg, struct task_group *parent)
| ^~~~~~~~~~~~~~~~~~
>> kernel/sched/alt_core.c:5835:6: error: no previous prototype for 'sched_destroy_group' [-Werror=missing-prototypes]
5835 | void sched_destroy_group(struct task_group *tg)
| ^~~~~~~~~~~~~~~~~~~
>> kernel/sched/alt_core.c:5841:6: error: no previous prototype for 'sched_offline_group' [-Werror=missing-prototypes]
5841 | void sched_offline_group(struct task_group *tg)
| ^~~~~~~~~~~~~~~~~~~
>> kernel/sched/alt_core.c:5933:27: error: initialized field overwritten [-Werror=override-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: In function 'select_fallback_rq':
kernel/sched/alt_core.c:1357:28: error: this statement may fall through [-Werror=implicit-fallthrough=]
1357 | if (IS_ENABLED(CONFIG_CPUSETS)) {
| ^
kernel/sched/alt_core.c:1363:17: note: here
1363 | case possible:
| ^~~~
At top level:
kernel/sched/alt_core.c:142:18: error: 'sched_sg_idle_mask' defined but not used [-Werror=unused-variable]
142 | static cpumask_t sched_sg_idle_mask ____cacheline_aligned_in_smp;
| ^~~~~~~~~~~~~~~~~~
cc1: all 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
686 #ifdef CONFIG_SMP
687 #ifdef CONFIG_NO_HZ_COMMON
688 void nohz_balance_enter_idle(int cpu)
689 {
690 }
691
> 692 void select_nohz_load_balancer(int stop_tick)
693 {
694 }
695
> 696 void set_cpu_sd_state_idle(void) {}
697
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 72413 bytes --]
reply other threads:[~2021-11-05 13:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202111052101.vxFlVI1X-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.