* [sashal-stable:pending-5.16 35/73] kernel/sched/fair.c:3796:55: error: 'divider' undeclared
@ 2022-02-11 22:25 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-02-11 22:25 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5282 bytes --]
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: arc-randconfig-r043-20220211 (https://download.01.org/0day-ci/archive/20220212/202202120638.Lth8u00j-lkp(a)intel.com/config)
compiler: arc-elf-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/sashal/linux-stable.git/commit/?id=b765f44bc5887dafdcc7eeb33cee10d448cd1f2a
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=gcc-11.2.0 make.cross O=build_dir ARCH=arc 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: In function 'detach_entity_load_avg':
>> kernel/sched/fair.c:3796:55: error: 'divider' undeclared (first use in this function)
3796 | cfs_rq->avg.util_sum = cfs_rq->avg.util_avg * divider;
| ^~~~~~~
kernel/sched/fair.c:3796:55: note: each undeclared identifier is reported only once for each function it appears in
In file included from include/linux/perf_event.h:25,
from include/linux/trace_events.h:10,
from include/trace/syscall.h:7,
from include/linux/syscalls.h:88,
from kernel/sched/sched.h:66,
from kernel/sched/fair.c:23:
At top level:
arch/arc/include/asm/perf_event.h:126:27: warning: 'arc_pmu_cache_map' defined but not used [-Wunused-const-variable=]
126 | static const unsigned int arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
| ^~~~~~~~~~~~~~~~~
arch/arc/include/asm/perf_event.h:91:27: warning: 'arc_pmu_ev_hw_map' defined but not used [-Wunused-const-variable=]
91 | static const char * const arc_pmu_ev_hw_map[] = {
| ^~~~~~~~~~~~~~~~~
vim +/divider +3796 kernel/sched/fair.c
a05e8c51ff097f Byungchul Park 2015-08-20 3783
3d30544f02120b Peter Zijlstra 2016-06-21 3784 /**
3d30544f02120b Peter Zijlstra 2016-06-21 3785 * detach_entity_load_avg - detach this entity from its cfs_rq load avg
3d30544f02120b Peter Zijlstra 2016-06-21 3786 * @cfs_rq: cfs_rq to detach from
3d30544f02120b Peter Zijlstra 2016-06-21 3787 * @se: sched_entity to detach
3d30544f02120b Peter Zijlstra 2016-06-21 3788 *
3d30544f02120b Peter Zijlstra 2016-06-21 3789 * Must call update_cfs_rq_load_avg() before this, since we rely on
3d30544f02120b Peter Zijlstra 2016-06-21 3790 * cfs_rq->avg.last_update_time being current.
3d30544f02120b Peter Zijlstra 2016-06-21 3791 */
a05e8c51ff097f Byungchul Park 2015-08-20 3792 static void detach_entity_load_avg(struct cfs_rq *cfs_rq, struct sched_entity *se)
a05e8c51ff097f Byungchul Park 2015-08-20 3793 {
8d5b9025f9b450 Peter Zijlstra 2017-08-24 3794 dequeue_load_avg(cfs_rq, se);
89741892221591 Peter Zijlstra 2016-06-16 3795 sub_positive(&cfs_rq->avg.util_avg, se->avg.util_avg);
fcf6631f373698 Vincent Guittot 2021-06-01 @3796 cfs_rq->avg.util_sum = cfs_rq->avg.util_avg * divider;
9f68395333ad7f Vincent Guittot 2020-02-24 3797 sub_positive(&cfs_rq->avg.runnable_avg, se->avg.runnable_avg);
b765f44bc5887d Vincent Guittot 2022-01-11 3798 sub_positive(&cfs_rq->avg.runnable_sum, se->avg.runnable_sum);
b765f44bc5887d Vincent Guittot 2022-01-11 3799 /* See update_cfs_rq_load_avg() */
b765f44bc5887d Vincent Guittot 2022-01-11 3800 cfs_rq->avg.runnable_sum = max_t(u32, cfs_rq->avg.runnable_sum,
b765f44bc5887d Vincent Guittot 2022-01-11 3801 cfs_rq->avg.runnable_avg * PELT_MIN_DIVIDER);
0e2d2aaaae52c2 Peter Zijlstra 2017-05-08 3802
0e2d2aaaae52c2 Peter Zijlstra 2017-05-08 3803 add_tg_cfs_propagate(cfs_rq, -se->avg.load_sum);
a2c6c91f98247f Steve Muckle 2016-03-24 3804
ea14b57e8a181a Peter Zijlstra 2018-02-02 3805 cfs_rq_util_change(cfs_rq, 0);
ba19f51fcb549c Qais Yousef 2019-06-04 3806
ba19f51fcb549c Qais Yousef 2019-06-04 3807 trace_pelt_cfs_tp(cfs_rq);
a05e8c51ff097f Byungchul Park 2015-08-20 3808 }
a05e8c51ff097f 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@linaro.org>
:::::: CC: Peter Zijlstra <peterz@infradead.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-02-11 22:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-11 22:25 [sashal-stable:pending-5.16 35/73] kernel/sched/fair.c:3796:55: error: 'divider' undeclared kernel test robot
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.