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 EF963C433F5 for ; Fri, 15 Apr 2022 15:52:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355657AbiDOPyw (ORCPT ); Fri, 15 Apr 2022 11:54:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237241AbiDOPyt (ORCPT ); Fri, 15 Apr 2022 11:54:49 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FF26986EC for ; Fri, 15 Apr 2022 08:52:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650037940; x=1681573940; h=date:from:to:cc:subject:message-id:mime-version; bh=tC5qLnh8Yt30+1cGEb1nTlHlaTfRwNg9SJar/Qqlna8=; b=F8CwcivNvqMQVKtmhNtCKfoB8PjDGvtdhtp/jh0JqfJBdbvpaxd20D0E KiwKMLNnKqQ1Sb+uETRRYcEKjXCyBvBzP08/gvIgGYV71BwgQAWFj4Tho vczfpcf5ExLZZU03QAlK12Mh+GdSYJd/5rfuoYbHvLKXTTW0jpL9AbjLR IPluvBsAEjpplOZrFxNBidThWoGq1p0Gr2CP2Y6Z35rGye8/dBiDZ5nKg 3Qa+Eq2XTUqUGonPIEyq84yT/iy2fnJ6mMHBps5rpjEPigQ/cLKh2PmH9 ry7GK194mQu0D0YlhRhA7lFQDcEtwprGAhQ0HVk/VajFECemMkokqfVNt g==; X-IronPort-AV: E=McAfee;i="6400,9594,10318"; a="288237309" X-IronPort-AV: E=Sophos;i="5.90,263,1643702400"; d="scan'208";a="288237309" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2022 08:52:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,263,1643702400"; d="scan'208";a="508976448" Received: from lkp-server01.sh.intel.com (HELO 3abc53900bec) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 15 Apr 2022 08:52:18 -0700 Received: from kbuild by 3abc53900bec with local (Exim 4.95) (envelope-from ) id 1nfOF7-00026r-Rz; Fri, 15 Apr 2022 15:52:17 +0000 Date: Fri, 15 Apr 2022 23:52:02 +0800 From: kernel test robot To: Ingo Molnar Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: kernel/sched/core.c:5220:20: error: no previous prototype for 'task_sched_runtime' Message-ID: <202204152357.8KB5syUr-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.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 028192fea1de083f4f12bfb1eb7c4d7beb5c8ecd commit: 4ff8f2ca6ccd9e0cc5665d09f86d631b3ae3a14c sched/headers: Reorganize, clean up and optimize kernel/sched/sched.h dependencies date: 7 weeks ago config: x86_64-sof-customedconfig-edison-defconfig (https://download.01.org/0day-ci/archive/20220415/202204152357.8KB5syUr-lkp@intel.com/config) compiler: gcc-11 (Debian 11.2.0-19) 11.2.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4ff8f2ca6ccd9e0cc5665d09f86d631b3ae3a14c git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 4ff8f2ca6ccd9e0cc5665d09f86d631b3ae3a14c # save the config file to linux build tree mkdir build_dir make W=1 O=build_dir ARCH=x86_64 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/core.c:3516:6: error: no previous prototype for 'sched_set_stop_task' [-Werror=missing-prototypes] 3516 | void sched_set_stop_task(int cpu, struct task_struct *stop) | ^~~~~~~~~~~~~~~~~~~ >> kernel/sched/core.c:5220:20: error: no previous prototype for 'task_sched_runtime' [-Werror=missing-prototypes] 5220 | unsigned long long task_sched_runtime(struct task_struct *p) | ^~~~~~~~~~~~~~~~~~ >> kernel/sched/core.c:8931:6: error: no previous prototype for 'idle_task_exit' [-Werror=missing-prototypes] 8931 | void idle_task_exit(void) | ^~~~~~~~~~~~~~ >> kernel/sched/core.c:9164:5: error: no previous prototype for 'sched_cpu_activate' [-Werror=missing-prototypes] 9164 | int sched_cpu_activate(unsigned int cpu) | ^~~~~~~~~~~~~~~~~~ >> kernel/sched/core.c:9209:5: error: no previous prototype for 'sched_cpu_deactivate' [-Werror=missing-prototypes] 9209 | int sched_cpu_deactivate(unsigned int cpu) | ^~~~~~~~~~~~~~~~~~~~ >> kernel/sched/core.c:9284:5: error: no previous prototype for 'sched_cpu_starting' [-Werror=missing-prototypes] 9284 | int sched_cpu_starting(unsigned int cpu) | ^~~~~~~~~~~~~~~~~~ >> kernel/sched/core.c:9305:5: error: no previous prototype for 'sched_cpu_wait_empty' [-Werror=missing-prototypes] 9305 | int sched_cpu_wait_empty(unsigned int cpu) | ^~~~~~~~~~~~~~~~~~~~ >> kernel/sched/core.c:9347:5: error: no previous prototype for 'sched_cpu_dying' [-Werror=missing-prototypes] 9347 | int sched_cpu_dying(unsigned int cpu) | ^~~~~~~~~~~~~~~ >> kernel/sched/core.c:9370:13: error: no previous prototype for 'sched_init_smp' [-Werror=missing-prototypes] 9370 | void __init sched_init_smp(void) | ^~~~~~~~~~~~~~ >> kernel/sched/core.c:9431:13: error: no previous prototype for 'sched_init' [-Werror=missing-prototypes] 9431 | void __init sched_init(void) | ^~~~~~~~~~ cc1: all warnings being treated as errors -- >> kernel/sched/fair.c:10634:6: error: no previous prototype for 'nohz_balance_enter_idle' [-Werror=missing-prototypes] 10634 | void nohz_balance_enter_idle(int cpu) | ^~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors -- In file included from kernel/sched/build_utility.c:79: >> kernel/sched/loadavg.c:245:6: error: no previous prototype for 'calc_load_nohz_start' [-Werror=missing-prototypes] 245 | void calc_load_nohz_start(void) | ^~~~~~~~~~~~~~~~~~~~ >> kernel/sched/loadavg.c:258:6: error: no previous prototype for 'calc_load_nohz_remote' [-Werror=missing-prototypes] 258 | void calc_load_nohz_remote(struct rq *rq) | ^~~~~~~~~~~~~~~~~~~~~ >> kernel/sched/loadavg.c:263:6: error: no previous prototype for 'calc_load_nohz_stop' [-Werror=missing-prototypes] 263 | void calc_load_nohz_stop(void) | ^~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +/task_sched_runtime +5220 kernel/sched/core.c 6075620b0590ea kernel/sched/core.c Giovanni Gherdovich 2016-08-05 5214 c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5215 /* c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5216 * Return accounted runtime for the task. c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5217 * In case the task is currently running, return the runtime plus current's c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5218 * pending runtime that have not been accounted yet. c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5219 */ c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 @5220 unsigned long long task_sched_runtime(struct task_struct *p) c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5221 { eb58075149b7f0 kernel/sched/core.c Peter Zijlstra 2015-07-31 5222 struct rq_flags rf; c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5223 struct rq *rq; 6e998916dfe327 kernel/sched/core.c Stanislaw Gruszka 2014-11-12 5224 u64 ns; c5f8d99585d7b5 kernel/sched.c Hidetoshi Seto 2009-03-31 5225 :::::: The code at line 5220 was first introduced by commit :::::: c5f8d99585d7b5b7e857fabf8aefd0174903a98c posixtimers, sched: Fix posix clock monotonicity :::::: TO: Hidetoshi Seto :::::: CC: Ingo Molnar -- 0-DAY CI Kernel Test Service https://01.org/lkp