From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DEE3FC433F5 for ; Mon, 28 Feb 2022 01:25:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232318AbiB1B0a (ORCPT ); Sun, 27 Feb 2022 20:26:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230050AbiB1B00 (ORCPT ); Sun, 27 Feb 2022 20:26:26 -0500 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B938A606DC for ; Sun, 27 Feb 2022 17:25:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646011548; x=1677547548; h=date:from:to:cc:subject:message-id:mime-version; bh=2mwSppfZkfAdpw2Ix3xuCLUiuoeoqT1sQ+Vj3AAqJUU=; b=JblA3PlH/QO8JjOEkq+VPB/S55CoIQZKAE347XWl9MHpY+y/IrcBzBej uPMgsCcs7rm8zPmpXzbwr8dtHIG9z9fmQ+qzoS4Ges+gMZi2vYXSW1bAy Sqfn16M0TEwuRJT4ikPbc10RH8Oij1r0Qx+KLWPiKSQnMYWrewGKDx/h6 iF5sbGyjYo6oXlPlWN7YYeLcJF5LHtratgYzDPaq+XP79VZ9VoBVatutW /8bHKSE5e1+p4xFSwik8g28M+Xt/KPG5D60iyQnqvRgP26vWLlqkZvkuJ mNkMMe8SVqfzGhSfunOY/JEUlaebkQH+/+aWaHW+rU2FT0W01ADFdfWUz g==; X-IronPort-AV: E=McAfee;i="6200,9189,10271"; a="313496130" X-IronPort-AV: E=Sophos;i="5.90,142,1643702400"; d="scan'208";a="313496130" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Feb 2022 17:25:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,142,1643702400"; d="scan'208";a="550026944" Received: from lkp-server01.sh.intel.com (HELO 788b1cd46f0d) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 27 Feb 2022 17:25:46 -0800 Received: from kbuild by 788b1cd46f0d with local (Exim 4.92) (envelope-from ) id 1nOUnJ-0006vF-TI; Mon, 28 Feb 2022 01:25:45 +0000 Date: Mon, 28 Feb 2022 09:25:41 +0800 From: kernel test robot To: Dietmar Eggemann Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org 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 Message-ID: <202202280917.L7rKc4gI-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 :::::: CC: Ingo Molnar --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org