lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202203152144.uFQqgVUf-lkp@intel.com>
Date:   Tue, 15 Mar 2022 21:24:58 +0800
From:   kernel test robot <lkp@...el.com>
To:     Ingo Molnar <mingo@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [mingo-tip:sched/core 16/16] kernel/sched/loadavg.c:245:6: warning:
 no previous prototype for 'calc_load_nohz_start'

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/core
head:   4ff8f2ca6ccd9e0cc5665d09f86d631b3ae3a14c
commit: 4ff8f2ca6ccd9e0cc5665d09f86d631b3ae3a14c [16/16] sched/headers: Reorganize, clean up and optimize kernel/sched/sched.h dependencies
config: nios2-defconfig (https://download.01.org/0day-ci/archive/20220315/202203152144.uFQqgVUf-lkp@intel.com/config)
compiler: nios2-linux-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/mingo/tip.git/commit/?id=4ff8f2ca6ccd9e0cc5665d09f86d631b3ae3a14c
        git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
        git fetch --no-tags mingo-tip sched/core
        git checkout 4ff8f2ca6ccd9e0cc5665d09f86d631b3ae3a14c
        # 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=nios2 SHELL=/bin/bash kernel/

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

   In file included from kernel/sched/build_utility.c:79:
>> kernel/sched/loadavg.c:245:6: warning: no previous prototype for 'calc_load_nohz_start' [-Wmissing-prototypes]
     245 | void calc_load_nohz_start(void)
         |      ^~~~~~~~~~~~~~~~~~~~
>> kernel/sched/loadavg.c:258:6: warning: no previous prototype for 'calc_load_nohz_remote' [-Wmissing-prototypes]
     258 | void calc_load_nohz_remote(struct rq *rq)
         |      ^~~~~~~~~~~~~~~~~~~~~
>> kernel/sched/loadavg.c:263:6: warning: no previous prototype for 'calc_load_nohz_stop' [-Wmissing-prototypes]
     263 | void calc_load_nohz_stop(void)
         |      ^~~~~~~~~~~~~~~~~~~


vim +/calc_load_nohz_start +245 kernel/sched/loadavg.c

45ceebf77653975 kernel/sched/proc.c    Paul Gortmaker         2013-04-19  244  
ebc0f83c78a2d26 kernel/sched/loadavg.c Peter Zijlstra (Intel  2020-01-11 @245) void calc_load_nohz_start(void)
ebc0f83c78a2d26 kernel/sched/loadavg.c Peter Zijlstra (Intel  2020-01-11  246) {
ebc0f83c78a2d26 kernel/sched/loadavg.c Peter Zijlstra (Intel  2020-01-11  247) 	/*
ebc0f83c78a2d26 kernel/sched/loadavg.c Peter Zijlstra (Intel  2020-01-11  248) 	 * We're going into NO_HZ mode, if there's any pending delta, fold it
ebc0f83c78a2d26 kernel/sched/loadavg.c Peter Zijlstra (Intel  2020-01-11  249) 	 * into the pending NO_HZ delta.
ebc0f83c78a2d26 kernel/sched/loadavg.c Peter Zijlstra (Intel  2020-01-11  250) 	 */
ebc0f83c78a2d26 kernel/sched/loadavg.c Peter Zijlstra (Intel  2020-01-11  251) 	calc_load_nohz_fold(this_rq());
ebc0f83c78a2d26 kernel/sched/loadavg.c Peter Zijlstra (Intel  2020-01-11  252) }
ebc0f83c78a2d26 kernel/sched/loadavg.c Peter Zijlstra (Intel  2020-01-11  253) 
ebc0f83c78a2d26 kernel/sched/loadavg.c Peter Zijlstra (Intel  2020-01-11  254) /*
ebc0f83c78a2d26 kernel/sched/loadavg.c Peter Zijlstra (Intel  2020-01-11  255)  * Keep track of the load for NOHZ_FULL, must be called between
ebc0f83c78a2d26 kernel/sched/loadavg.c Peter Zijlstra (Intel  2020-01-11  256)  * calc_load_nohz_{start,stop}().
ebc0f83c78a2d26 kernel/sched/loadavg.c Peter Zijlstra (Intel  2020-01-11  257)  */
ebc0f83c78a2d26 kernel/sched/loadavg.c Peter Zijlstra (Intel  2020-01-11 @258) void calc_load_nohz_remote(struct rq *rq)
ebc0f83c78a2d26 kernel/sched/loadavg.c Peter Zijlstra (Intel  2020-01-11  259) {
ebc0f83c78a2d26 kernel/sched/loadavg.c Peter Zijlstra (Intel  2020-01-11  260) 	calc_load_nohz_fold(rq);
ebc0f83c78a2d26 kernel/sched/loadavg.c Peter Zijlstra (Intel  2020-01-11  261) }
ebc0f83c78a2d26 kernel/sched/loadavg.c Peter Zijlstra (Intel  2020-01-11  262) 
3c85d6db5e5f05a kernel/sched/loadavg.c Frederic Weisbecker    2017-06-19 @263  void calc_load_nohz_stop(void)
45ceebf77653975 kernel/sched/proc.c    Paul Gortmaker         2013-04-19  264  {
45ceebf77653975 kernel/sched/proc.c    Paul Gortmaker         2013-04-19  265  	struct rq *this_rq = this_rq();
45ceebf77653975 kernel/sched/proc.c    Paul Gortmaker         2013-04-19  266  
45ceebf77653975 kernel/sched/proc.c    Paul Gortmaker         2013-04-19  267  	/*
6e5f32f7a43f45e kernel/sched/loadavg.c Matt Fleming           2017-02-17  268  	 * If we're still before the pending sample window, we're done.
45ceebf77653975 kernel/sched/proc.c    Paul Gortmaker         2013-04-19  269  	 */
caeb5882979bc6f kernel/sched/loadavg.c Matt Fleming           2017-02-17  270  	this_rq->calc_load_update = READ_ONCE(calc_load_update);
45ceebf77653975 kernel/sched/proc.c    Paul Gortmaker         2013-04-19  271  	if (time_before(jiffies, this_rq->calc_load_update))
45ceebf77653975 kernel/sched/proc.c    Paul Gortmaker         2013-04-19  272  		return;
45ceebf77653975 kernel/sched/proc.c    Paul Gortmaker         2013-04-19  273  
45ceebf77653975 kernel/sched/proc.c    Paul Gortmaker         2013-04-19  274  	/*
45ceebf77653975 kernel/sched/proc.c    Paul Gortmaker         2013-04-19  275  	 * We woke inside or after the sample window, this means we're already
45ceebf77653975 kernel/sched/proc.c    Paul Gortmaker         2013-04-19  276  	 * accounted through the nohz accounting, so skip the entire deal and
45ceebf77653975 kernel/sched/proc.c    Paul Gortmaker         2013-04-19  277  	 * sync up for the next window.
45ceebf77653975 kernel/sched/proc.c    Paul Gortmaker         2013-04-19  278  	 */
45ceebf77653975 kernel/sched/proc.c    Paul Gortmaker         2013-04-19  279  	if (time_before(jiffies, this_rq->calc_load_update + 10))
45ceebf77653975 kernel/sched/proc.c    Paul Gortmaker         2013-04-19  280  		this_rq->calc_load_update += LOAD_FREQ;
45ceebf77653975 kernel/sched/proc.c    Paul Gortmaker         2013-04-19  281  }
45ceebf77653975 kernel/sched/proc.c    Paul Gortmaker         2013-04-19  282  

:::::: The code at line 245 was first introduced by commit
:::::: ebc0f83c78a2d26384401ecf2d2fa48063c0ee27 timers/nohz: Update NOHZ load in remote tick

:::::: TO: Peter Zijlstra (Intel) <peterz@...radead.org>
:::::: CC: Ingo Molnar <mingo@...nel.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ