lkml.org 
[lkml]   [2022]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[arm-de:wip/uclamp_util_cap 1/2] kernel/sched/fair.c:8262:68: error: too few arguments to function call, expected 3, have 2
tree:   https://git.gitlab.arm.com/linux-arm/linux-de.git wip/uclamp_util_cap
head: df7ef1cab37eca401198f547fd206c7c180fdac5
commit: adad7d47ad753ee91ed6c61c55a3a078031d99c3 [1/2] sched/fair, pelt: Force rng se/cfs_rq to !rng if se's util_avg>=uclamp_max for tasks
config: mips-maltaaprp_defconfig (https://download.01.org/0day-ci/archive/20220228/202202280917.L7rKc4gI-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
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
git remote add arm-de https://git.gitlab.arm.com/linux-arm/linux-de.git
git fetch --no-tags arm-de wip/uclamp_util_cap
git checkout adad7d47ad753ee91ed6c61c55a3a078031d99c3
# 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=mips SHELL=/bin/bash

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 >>):

kernel/sched/fair.c:5514:6: warning: no previous prototype for function 'init_cfs_bandwidth' [-Wmissing-prototypes]
void init_cfs_bandwidth(struct cfs_bandwidth *cfs_b) {}
^
kernel/sched/fair.c:5514:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void init_cfs_bandwidth(struct cfs_bandwidth *cfs_b) {}
^
static
>> kernel/sched/fair.c:8262:68: error: too few arguments to function call, expected 3, have 2
decayed = update_cfs_rq_load_avg(cfs_rq_clock_pelt(cfs_rq), cfs_rq);
~~~~~~~~~~~~~~~~~~~~~~ ^
kernel/sched/fair.c:3698:1: note: 'update_cfs_rq_load_avg' declared here
update_cfs_rq_load_avg(u64 now, struct cfs_rq *cfs_rq, int running)
^
kernel/sched/fair.c:11742:6: warning: no previous prototype for function 'free_fair_sched_group' [-Wmissing-prototypes]
void free_fair_sched_group(struct task_group *tg) { }
^
kernel/sched/fair.c:11742:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void free_fair_sched_group(struct task_group *tg) { }
^
static
kernel/sched/fair.c:11744:5: warning: no previous prototype for function 'alloc_fair_sched_group' [-Wmissing-prototypes]
int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
^
kernel/sched/fair.c:11744:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
^
static
kernel/sched/fair.c:11749:6: warning: no previous prototype for function 'online_fair_sched_group' [-Wmissing-prototypes]
void online_fair_sched_group(struct task_group *tg) { }
^
kernel/sched/fair.c:11749:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void online_fair_sched_group(struct task_group *tg) { }
^
static
kernel/sched/fair.c:11751:6: warning: no previous prototype for function 'unregister_fair_sched_group' [-Wmissing-prototypes]
void unregister_fair_sched_group(struct task_group *tg) { }
^
kernel/sched/fair.c:11751:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void unregister_fair_sched_group(struct task_group *tg) { }
^
static
5 warnings and 1 error generated.


vim +8262 kernel/sched/fair.c

9763b67fb9f305 kernel/sched_fair.c Peter Zijlstra 2011-07-13 8247
367456c756a6b8 kernel/sched/fair.c Peter Zijlstra 2012-02-20 8248 static unsigned long task_h_load(struct task_struct *p)
230059de77a4e0 kernel/sched_fair.c Peter Zijlstra 2009-12-17 8249 {
367456c756a6b8 kernel/sched/fair.c Peter Zijlstra 2012-02-20 8250 struct cfs_rq *cfs_rq = task_cfs_rq(p);
230059de77a4e0 kernel/sched_fair.c Peter Zijlstra 2009-12-17 8251
685207963be973 kernel/sched/fair.c Vladimir Davydov 2013-07-15 8252 update_cfs_rq_h_load(cfs_rq);
9d89c257dfb9c5 kernel/sched/fair.c Yuyang Du 2015-07-15 8253 return div64_ul(p->se.avg.load_avg * cfs_rq->h_load,
7ea241afbf4924 kernel/sched/fair.c Yuyang Du 2015-07-15 8254 cfs_rq_load_avg(cfs_rq) + 1);
230059de77a4e0 kernel/sched_fair.c Peter Zijlstra 2009-12-17 8255 }
230059de77a4e0 kernel/sched_fair.c Peter Zijlstra 2009-12-17 8256 #else
bef69dd87828ef kernel/sched/fair.c Vincent Guittot 2019-11-18 8257 static bool __update_blocked_fair(struct rq *rq, bool *done)
9e3081ca61147b kernel/sched_fair.c Peter Zijlstra 2010-11-15 8258 {
6c1d47c0827304 kernel/sched/fair.c Vincent Guittot 2015-07-15 8259 struct cfs_rq *cfs_rq = &rq->cfs;
bef69dd87828ef kernel/sched/fair.c Vincent Guittot 2019-11-18 8260 bool decayed;
b90f7c9d2198d7 kernel/sched/fair.c Vincent Guittot 2019-10-30 8261
bef69dd87828ef kernel/sched/fair.c Vincent Guittot 2019-11-18 @8262 decayed = update_cfs_rq_load_avg(cfs_rq_clock_pelt(cfs_rq), cfs_rq);
bef69dd87828ef kernel/sched/fair.c Vincent Guittot 2019-11-18 8263 if (cfs_rq_has_blocked(cfs_rq))
bef69dd87828ef kernel/sched/fair.c Vincent Guittot 2019-11-18 8264 *done = false;
b90f7c9d2198d7 kernel/sched/fair.c Vincent Guittot 2019-10-30 8265
bef69dd87828ef kernel/sched/fair.c Vincent Guittot 2019-11-18 8266 return decayed;
9e3081ca61147b kernel/sched_fair.c Peter Zijlstra 2010-11-15 8267 }
9e3081ca61147b kernel/sched_fair.c Peter Zijlstra 2010-11-15 8268

:::::: The code at line 8262 was first introduced by commit
:::::: bef69dd87828ef5d8ecdab8d857cd3a33cf98675 sched/cpufreq: Move the cfs_rq_util_change() call to cpufreq_update_util()

:::::: TO: Vincent Guittot <vincent.guittot@linaro.org>
:::::: CC: Ingo Molnar <mingo@kernel.org>

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

\
 
 \ /
  Last update: 2022-02-28 02:26    [W:0.030 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site