tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
pending-5.16
head: 51f919289215d09b2aeca5dc7f27639f21ad7d1e
commit: b765f44bc5887dafdcc7eeb33cee10d448cd1f2a [35/73] sched/pelt: Relax the sync of
runnable_sum with runnable_avg
config: hexagon-randconfig-r045-20220211
(
https://download.01.org/0day-ci/archive/20220212/202202120708.NYXhtjUK-lk...)
compiler: clang version 15.0.0 (
https://github.com/llvm/llvm-project
f6685f774697c85d6a352dcea013f46a99f9fe31)
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/sashal/linux-stable.git/c...
git remote add sashal-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-stable pending-5.16
git checkout b765f44bc5887dafdcc7eeb33cee10d448cd1f2a
# 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=hexagon SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> kernel/sched/fair.c:3796:48: error: use of undeclared identifier
'divider'
cfs_rq->avg.util_sum = cfs_rq->avg.util_avg *
divider;
^
kernel/sched/fair.c:5458: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:5458: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:11731: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:11731: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:11733: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:11733: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:11738: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:11738: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:11740: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:11740: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 +/divider +3796 kernel/sched/fair.c
a05e8c51ff097ff Byungchul Park 2015-08-20 3783
3d30544f02120b8 Peter Zijlstra 2016-06-21 3784 /**
3d30544f02120b8 Peter Zijlstra 2016-06-21 3785 * detach_entity_load_avg - detach this
entity from its cfs_rq load avg
3d30544f02120b8 Peter Zijlstra 2016-06-21 3786 * @cfs_rq: cfs_rq to detach from
3d30544f02120b8 Peter Zijlstra 2016-06-21 3787 * @se: sched_entity to detach
3d30544f02120b8 Peter Zijlstra 2016-06-21 3788 *
3d30544f02120b8 Peter Zijlstra 2016-06-21 3789 * Must call update_cfs_rq_load_avg()
before this, since we rely on
3d30544f02120b8 Peter Zijlstra 2016-06-21 3790 * cfs_rq->avg.last_update_time being
current.
3d30544f02120b8 Peter Zijlstra 2016-06-21 3791 */
a05e8c51ff097ff Byungchul Park 2015-08-20 3792 static void
detach_entity_load_avg(struct cfs_rq *cfs_rq, struct sched_entity *se)
a05e8c51ff097ff Byungchul Park 2015-08-20 3793 {
8d5b9025f9b4500 Peter Zijlstra 2017-08-24 3794 dequeue_load_avg(cfs_rq, se);
897418922215915 Peter Zijlstra 2016-06-16 3795
sub_positive(&cfs_rq->avg.util_avg, se->avg.util_avg);
fcf6631f3736985 Vincent Guittot 2021-06-01 @3796 cfs_rq->avg.util_sum =
cfs_rq->avg.util_avg * divider;
9f68395333ad7f5 Vincent Guittot 2020-02-24 3797
sub_positive(&cfs_rq->avg.runnable_avg, se->avg.runnable_avg);
b765f44bc5887da Vincent Guittot 2022-01-11 3798
sub_positive(&cfs_rq->avg.runnable_sum, se->avg.runnable_sum);
b765f44bc5887da Vincent Guittot 2022-01-11 3799 /* See update_cfs_rq_load_avg() */
b765f44bc5887da Vincent Guittot 2022-01-11 3800 cfs_rq->avg.runnable_sum =
max_t(u32, cfs_rq->avg.runnable_sum,
b765f44bc5887da Vincent Guittot 2022-01-11 3801 cfs_rq->avg.runnable_avg *
PELT_MIN_DIVIDER);
0e2d2aaaae52c24 Peter Zijlstra 2017-05-08 3802
0e2d2aaaae52c24 Peter Zijlstra 2017-05-08 3803 add_tg_cfs_propagate(cfs_rq,
-se->avg.load_sum);
a2c6c91f98247fe Steve Muckle 2016-03-24 3804
ea14b57e8a181ac Peter Zijlstra 2018-02-02 3805 cfs_rq_util_change(cfs_rq, 0);
ba19f51fcb549c7 Qais Yousef 2019-06-04 3806
ba19f51fcb549c7 Qais Yousef 2019-06-04 3807 trace_pelt_cfs_tp(cfs_rq);
a05e8c51ff097ff Byungchul Park 2015-08-20 3808 }
a05e8c51ff097ff Byungchul Park 2015-08-20 3809
:::::: The code at line 3796 was first introduced by commit
:::::: fcf6631f3736985ec89bdd76392d3c7bfb60119f sched/pelt: Ensure that *_sum is always
synced with *_avg
:::::: TO: Vincent Guittot <vincent.guittot(a)linaro.org>
:::::: CC: Peter Zijlstra <peterz(a)infradead.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org