lkml.org 
[lkml]   [2022]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[mingo-tip:sched/core 16/16] kernel/sched/core.c:5220:20: warning: no previous prototype for 'task_sched_runtime'
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/core
head: 4ff8f2ca6ccd9e0cc5665d09f86d631b3ae3a14c
commit: 4ff8f2ca6ccd9e0cc5665d09f86d631b3ae3a14c [16/16] sched/headers: Reorganize, clean up and optimize kernel/sched/sched.h dependencies
config: nds32-allnoconfig (https://download.01.org/0day-ci/archive/20220315/202203152116.qphmikIZ-lkp@intel.com/config)
compiler: nds32le-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://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=4ff8f2ca6ccd9e0cc5665d09f86d631b3ae3a14c
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/core
git checkout 4ff8f2ca6ccd9e0cc5665d09f86d631b3ae3a14c
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nds32 SHELL=/bin/bash kernel/sched/

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

All warnings (new ones prefixed by >>):

>> kernel/sched/core.c:5220:20: warning: no previous prototype for 'task_sched_runtime' [-Wmissing-prototypes]
5220 | unsigned long long task_sched_runtime(struct task_struct *p)
| ^~~~~~~~~~~~~~~~~~
>> kernel/sched/core.c:9403:13: warning: no previous prototype for 'sched_init_smp' [-Wmissing-prototypes]
9403 | void __init sched_init_smp(void)
| ^~~~~~~~~~~~~~
>> kernel/sched/core.c:9431:13: warning: no previous prototype for 'sched_init' [-Wmissing-prototypes]
9431 | void __init sched_init(void)
| ^~~~~~~~~~


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

6075620b0590eaf kernel/sched/core.c Giovanni Gherdovich 2016-08-05 5214
c5f8d99585d7b5b kernel/sched.c Hidetoshi Seto 2009-03-31 5215 /*
c5f8d99585d7b5b kernel/sched.c Hidetoshi Seto 2009-03-31 5216 * Return accounted runtime for the task.
c5f8d99585d7b5b kernel/sched.c Hidetoshi Seto 2009-03-31 5217 * In case the task is currently running, return the runtime plus current's
c5f8d99585d7b5b kernel/sched.c Hidetoshi Seto 2009-03-31 5218 * pending runtime that have not been accounted yet.
c5f8d99585d7b5b kernel/sched.c Hidetoshi Seto 2009-03-31 5219 */
c5f8d99585d7b5b kernel/sched.c Hidetoshi Seto 2009-03-31 @5220 unsigned long long task_sched_runtime(struct task_struct *p)
c5f8d99585d7b5b kernel/sched.c Hidetoshi Seto 2009-03-31 5221 {
eb58075149b7f03 kernel/sched/core.c Peter Zijlstra 2015-07-31 5222 struct rq_flags rf;
c5f8d99585d7b5b kernel/sched.c Hidetoshi Seto 2009-03-31 5223 struct rq *rq;
6e998916dfe327e kernel/sched/core.c Stanislaw Gruszka 2014-11-12 5224 u64 ns;
c5f8d99585d7b5b 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@jp.fujitsu.com>
:::::: CC: Ingo Molnar <mingo@elte.hu>

---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

\
 
 \ /
  Last update: 2022-03-15 14:15    [W:0.019 / U:1.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site