[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202202211012.Blj8znBG-lkp@intel.com>
Date: Mon, 21 Feb 2022 10:22:20 +0800
From: kernel test robot <lkp@...el.com>
To: Ingo Molnar <mingo@...nel.org>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [mingo-tip:sched/headers 1782/2574] kernel/sched/core.c:5345:20:
warning: no previous prototype for function 'task_sched_runtime'
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: 39e8a0edc8fae20758051dadf7846849edc18b88
commit: b6902652b0ca92c05ba2a78dafaa1db83f232fe4 [1782/2574] headers/deps: Reorganize, clean up and optimize kernel/sched/sched.h dependencies
config: x86_64-randconfig-a012 (https://download.01.org/0day-ci/archive/20220221/202202211012.Blj8znBG-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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=b6902652b0ca92c05ba2a78dafaa1db83f232fe4
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout b6902652b0ca92c05ba2a78dafaa1db83f232fe4
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/entry/vsyscall/ arch/x86/pci/ kernel/sched/ kernel/trace/ lib/ net/ipv6/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> kernel/sched/core.c:5345:20: warning: no previous prototype for function 'task_sched_runtime' [-Wmissing-prototypes]
unsigned long long task_sched_runtime(struct task_struct *p)
^
kernel/sched/core.c:5345:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
unsigned long long task_sched_runtime(struct task_struct *p)
^
static
>> kernel/sched/core.c:9478:13: warning: no previous prototype for function 'sched_init_smp' [-Wmissing-prototypes]
void __init sched_init_smp(void)
^
kernel/sched/core.c:9478:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init sched_init_smp(void)
^
static
kernel/sched/core.c:9508:13: warning: no previous prototype for function 'per_task_init' [-Wmissing-prototypes]
void __init per_task_init(void)
^
kernel/sched/core.c:9508:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init per_task_init(void)
^
static
>> kernel/sched/core.c:9517:13: warning: no previous prototype for function 'sched_init' [-Wmissing-prototypes]
void __init sched_init(void)
^
kernel/sched/core.c:9517:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init sched_init(void)
^
static
kernel/sched/core.c:3701:20: warning: unused function 'rq_has_pinned_tasks' [-Wunused-function]
static inline bool rq_has_pinned_tasks(struct rq *rq)
^
kernel/sched/core.c:5612:20: warning: unused function 'sched_tick_start' [-Wunused-function]
static inline void sched_tick_start(int cpu) { }
^
kernel/sched/core.c:5613:20: warning: unused function 'sched_tick_stop' [-Wunused-function]
static inline void sched_tick_stop(int cpu) { }
^
kernel/sched/core.c:6301:20: warning: unused function 'sched_core_cpu_starting' [-Wunused-function]
static inline void sched_core_cpu_starting(unsigned int cpu) {}
^
kernel/sched/core.c:6302:20: warning: unused function 'sched_core_cpu_deactivate' [-Wunused-function]
static inline void sched_core_cpu_deactivate(unsigned int cpu) {}
^
kernel/sched/core.c:6303:20: warning: unused function 'sched_core_cpu_dying' [-Wunused-function]
static inline void sched_core_cpu_dying(unsigned int cpu) {}
^
10 warnings generated.
--
In file included from kernel/sched/build_utility.c:79:
>> kernel/sched/loadavg.c:245:6: warning: no previous prototype for function 'calc_load_nohz_start' [-Wmissing-prototypes]
void calc_load_nohz_start(void)
^
kernel/sched/loadavg.c:245:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void calc_load_nohz_start(void)
^
static
>> kernel/sched/loadavg.c:258:6: warning: no previous prototype for function 'calc_load_nohz_remote' [-Wmissing-prototypes]
void calc_load_nohz_remote(struct rq *rq)
^
kernel/sched/loadavg.c:258:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void calc_load_nohz_remote(struct rq *rq)
^
static
>> kernel/sched/loadavg.c:263:6: warning: no previous prototype for function 'calc_load_nohz_stop' [-Wmissing-prototypes]
void calc_load_nohz_stop(void)
^
kernel/sched/loadavg.c:263:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void calc_load_nohz_stop(void)
^
static
3 warnings generated.
vim +/task_sched_runtime +5345 kernel/sched/core.c
6075620b0590ea kernel/sched/core.c Giovanni Gherdovich 2016-08-05 5339
c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5340 /*
c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5341 * Return accounted runtime for the task.
c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5342 * In case the task is currently running, return the runtime plus current's
c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5343 * pending runtime that have not been accounted yet.
c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5344 */
c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 @5345 unsigned long long task_sched_runtime(struct task_struct *p)
c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5346 {
eb58075149b7f0 kernel/sched/core.c Peter Zijlstra 2015-07-31 5347 struct rq_flags rf;
c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5348 struct rq *rq;
6e998916dfe327 kernel/sched/core.c Stanislaw Gruszka 2014-11-12 5349 u64 ns;
c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5350
:::::: The code at line 5345 was first introduced by commit
:::::: c5f8d99585d7b5b7e857fabf8aefd0174903a98c posixtimers, sched: Fix posix clock monotonicity
:::::: TO: Hidetoshi Seto <seto.hidetoshi@...fujitsu.com>
:::::: CC: Ingo Molnar <mingo@...e.hu>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists