From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6015906667218657734==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [sashal-stable:pending-5.16 35/73] kernel/sched/fair.c:3796:55: error: 'divider' undeclared Date: Sat, 12 Feb 2022 06:25:35 +0800 Message-ID: <202202120638.Lth8u00j-lkp@intel.com> List-Id: --===============6015906667218657734== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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/archi= ve/20220212/202202120638.Lth8u00j-lkp(a)intel.com/config) compiler: arc-elf-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 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-stab= le.git/commit/?id=3Db765f44bc5887dafdcc7eeb33cee10d448cd1f2a git remote add sashal-stable https://git.kernel.org/pub/scm/linux/k= ernel/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=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Darc SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot 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 t= his function) 3796 | cfs_rq->avg.util_sum =3D cfs_rq->avg.util_avg * divider; | ^~~~~~~ kernel/sched/fair.c:3796:55: note: each undeclared identifier is reporte= d 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' d= efined but not used [-Wunused-const-variable=3D] 126 | static const unsigned int arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C= (RESULT_MAX)] =3D { | ^~~~~~~~~~~~~~~~~ arch/arc/include/asm/perf_event.h:91:27: warning: 'arc_pmu_ev_hw_map' de= fined but not used [-Wunused-const-variable=3D] 91 | static const char * const arc_pmu_ev_hw_map[] =3D { | ^~~~~~~~~~~~~~~~~ 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 deta= ch from 3d30544f02120b Peter Zijlstra 2016-06-21 3787 * @se: sched_entity to de= tach 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 =3D = 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 = =3D max_t(u32, cfs_rq->avg.runnable_sum, b765f44bc5887d Vincent Guittot 2022-01-11 3801 cfs_rq->avg.run= nable_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 *_s= um is always synced with *_avg :::::: TO: Vincent Guittot :::::: CC: Peter Zijlstra --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============6015906667218657734==--