All of lore.kernel.org
 help / color / mirror / Atom feed
* [zen:5.15/prjc 1/237] kernel/sched/alt_core.c:652:6: error: no previous prototype for 'resched_curr'
@ 2021-11-12 11:08 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-12 11:08 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 32875 bytes --]

tree:   https://github.com/zen-kernel/zen-kernel 5.15/prjc
head:   09b9774798f91c4747ee3266e910eb8aebf2118c
commit: cb06db4ef97b1e99a0350d328e6044f374941410 [1/237] Project C v5.7.5-r2
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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/prjc
        git checkout cb06db4ef97b1e99a0350d328e6044f374941410
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc 

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: 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 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 '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/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:1002:9: note: in expansion of macro 'WARN_ON_ONCE'
    1002 |         WARN_ON_ONCE(p->state != TASK_RUNNING && p->state != TASK_WAKING &&
         |         ^~~~~~~~~~~~
   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/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:1002:9: note: in expansion of macro 'WARN_ON_ONCE'
    1002 |         WARN_ON_ONCE(p->state != TASK_RUNNING && p->state != TASK_WAKING &&
         |         ^~~~~~~~~~~~
   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 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
--
    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/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 '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: 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: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: In function 'sched_init_topology_cpumask':
>> kernel/sched/alt_core.c:5482:57: error: implicit declaration of function 'cpu_coregroup_mask' [-Werror=implicit-function-declaration]
    5482 |                 per_cpu(sd_llc_id, cpu) = cpumask_first(cpu_coregroup_mask(cpu));
         |                                                         ^~~~~~~~~~~~~~~~~~
   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/arc/include/asm/bug.h:30,
                    from include/linux/bug.h:5,
                    from include/linux/thread_info.h:13,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/arc/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:78,
                    from include/linux/rcupdate.h:27,
                    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: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: 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;
         |                  ^~~~~~~~~~~~~~~~~~
   In file included from include/linux/perf_event.h:25,
                    from include/linux/trace_events.h:10,
                    from include/trace/syscall.h:7,
                    from include/linux/syscalls.h:87,
                    from kernel/sched/alt_sched.h:38,
                    from kernel/sched/sched.h:6,
                    from kernel/sched/alt_core.c:14:
   arch/arc/include/asm/perf_event.h:126:27: error: 'arc_pmu_cache_map' defined but not used [-Werror=unused-const-variable=]
     126 | static const unsigned int arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
         |                           ^~~~~~~~~~~~~~~~~
   arch/arc/include/asm/perf_event.h:91:27: error: 'arc_pmu_ev_hw_map' defined but not used [-Werror=unused-const-variable=]
      91 | static const char * const arc_pmu_ev_hw_map[] = {
         |                           ^~~~~~~~~~~~~~~~~
   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: 69459 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-12 11:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-12 11:08 [zen:5.15/prjc 1/237] kernel/sched/alt_core.c:652:6: error: no previous prototype for 'resched_curr' kernel test robot

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.