kernel/sched/core.c:5220:20: error: no previous prototype for 'task_sched_runtime'

From: kernel test robot
Date: Fri Apr 15 2022 - 11:52:27 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 028192fea1de083f4f12bfb1eb7c4d7beb5c8ecd
commit: 4ff8f2ca6ccd9e0cc5665d09f86d631b3ae3a14c sched/headers: Reorganize, clean up and optimize kernel/sched/sched.h dependencies
date: 7 weeks ago
config: x86_64-sof-customedconfig-edison-defconfig (https://download.01.org/0day-ci/archive/20220415/202204152357.8KB5syUr-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.2.0-19) 11.2.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4ff8f2ca6ccd9e0cc5665d09f86d631b3ae3a14c
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 4ff8f2ca6ccd9e0cc5665d09f86d631b3ae3a14c
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

kernel/sched/core.c:3516:6: error: no previous prototype for 'sched_set_stop_task' [-Werror=missing-prototypes]
3516 | void sched_set_stop_task(int cpu, struct task_struct *stop)
| ^~~~~~~~~~~~~~~~~~~
>> kernel/sched/core.c:5220:20: error: no previous prototype for 'task_sched_runtime' [-Werror=missing-prototypes]
5220 | unsigned long long task_sched_runtime(struct task_struct *p)
| ^~~~~~~~~~~~~~~~~~
>> kernel/sched/core.c:8931:6: error: no previous prototype for 'idle_task_exit' [-Werror=missing-prototypes]
8931 | void idle_task_exit(void)
| ^~~~~~~~~~~~~~
>> kernel/sched/core.c:9164:5: error: no previous prototype for 'sched_cpu_activate' [-Werror=missing-prototypes]
9164 | int sched_cpu_activate(unsigned int cpu)
| ^~~~~~~~~~~~~~~~~~
>> kernel/sched/core.c:9209:5: error: no previous prototype for 'sched_cpu_deactivate' [-Werror=missing-prototypes]
9209 | int sched_cpu_deactivate(unsigned int cpu)
| ^~~~~~~~~~~~~~~~~~~~
>> kernel/sched/core.c:9284:5: error: no previous prototype for 'sched_cpu_starting' [-Werror=missing-prototypes]
9284 | int sched_cpu_starting(unsigned int cpu)
| ^~~~~~~~~~~~~~~~~~
>> kernel/sched/core.c:9305:5: error: no previous prototype for 'sched_cpu_wait_empty' [-Werror=missing-prototypes]
9305 | int sched_cpu_wait_empty(unsigned int cpu)
| ^~~~~~~~~~~~~~~~~~~~
>> kernel/sched/core.c:9347:5: error: no previous prototype for 'sched_cpu_dying' [-Werror=missing-prototypes]
9347 | int sched_cpu_dying(unsigned int cpu)
| ^~~~~~~~~~~~~~~
>> kernel/sched/core.c:9370:13: error: no previous prototype for 'sched_init_smp' [-Werror=missing-prototypes]
9370 | void __init sched_init_smp(void)
| ^~~~~~~~~~~~~~
>> kernel/sched/core.c:9431:13: error: no previous prototype for 'sched_init' [-Werror=missing-prototypes]
9431 | void __init sched_init(void)
| ^~~~~~~~~~
cc1: all warnings being treated as errors
--
>> kernel/sched/fair.c:10634:6: error: no previous prototype for 'nohz_balance_enter_idle' [-Werror=missing-prototypes]
10634 | void nohz_balance_enter_idle(int cpu)
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
In file included from kernel/sched/build_utility.c:79:
>> kernel/sched/loadavg.c:245:6: error: no previous prototype for 'calc_load_nohz_start' [-Werror=missing-prototypes]
245 | void calc_load_nohz_start(void)
| ^~~~~~~~~~~~~~~~~~~~
>> kernel/sched/loadavg.c:258:6: error: no previous prototype for 'calc_load_nohz_remote' [-Werror=missing-prototypes]
258 | void calc_load_nohz_remote(struct rq *rq)
| ^~~~~~~~~~~~~~~~~~~~~
>> kernel/sched/loadavg.c:263:6: error: no previous prototype for 'calc_load_nohz_stop' [-Werror=missing-prototypes]
263 | void calc_load_nohz_stop(void)
| ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors


vim +/task_sched_runtime +5220 kernel/sched/core.c

6075620b0590ea kernel/sched/core.c Giovanni Gherdovich 2016-08-05 5214
c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5215 /*
c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5216 * Return accounted runtime for the task.
c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5217 * In case the task is currently running, return the runtime plus current's
c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5218 * pending runtime that have not been accounted yet.
c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5219 */
c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 @5220 unsigned long long task_sched_runtime(struct task_struct *p)
c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5221 {
eb58075149b7f0 kernel/sched/core.c Peter Zijlstra 2015-07-31 5222 struct rq_flags rf;
c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5223 struct rq *rq;
6e998916dfe327 kernel/sched/core.c Stanislaw Gruszka 2014-11-12 5224 u64 ns;
c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5225

:::::: The code at line 5220 was first introduced by commit
:::::: c5f8d99585d7b5b7e857fabf8aefd0174903a98c posixtimers, sched: Fix posix clock monotonicity

:::::: TO: Hidetoshi Seto <seto.hidetoshi@xxxxxxxxxxxxxx>
:::::: CC: Ingo Molnar <mingo@xxxxxxx>

--
0-DAY CI Kernel Test Service
https://01.org/lkp