From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [mingo-tip:sched/core 16/16] kernel/sched/core.c:5220:20: warning: no previous prototype for 'task_sched_runtime'
Date: Tue, 15 Mar 2022 21:13:38 +0800 [thread overview]
Message-ID: <202203152116.qphmikIZ-lkp@intel.com> (raw)
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
reply other threads:[~2022-03-15 13:13 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=202203152116.qphmikIZ-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.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.