From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by gnuweeb.org (Postfix) with ESMTPS id 7F14D7E2BF for ; Thu, 10 Mar 2022 08:14:48 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=blEUfWLa; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646900088; x=1678436088; h=date:from:to:cc:subject:message-id:mime-version; bh=DQpLRL+t7gIBZp5H5cqRKxXL5RtnKEURvHaY1Fda1rU=; b=blEUfWLaoBQl/mn4ehgsRB8j1ZQwzXO5958w52xf8+Gux4wD6zASN+Py vPnWLLy5A4XtgOQpcGhHtnbg04Z9g1K73Lmg8TGSay4xw7zP0+zGnBREF hPBw1ird7C4KARAabZUUViUro1bYD0M6NQNyBFUYn5UESRQOVYLP6yz7B a76JSkKzONgKhs5wmY5Bhijj9C35ZDCbkPR1W2WHiKf882lSUWf4Uhgaz srr8T1yslishgIBKjdz7TYqix8rtd9pLxAJFyf5KWOHQA6dnYzQz3icFs KZ3RuRNzuGRF1v51JU7KW9fRzdBHPmPoZuqz/kTMunn6cmyx3mzBCsOwN Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10281"; a="315907684" X-IronPort-AV: E=Sophos;i="5.90,169,1643702400"; d="scan'208";a="315907684" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2022 00:14:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,169,1643702400"; d="scan'208";a="642467634" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by fmsmga002.fm.intel.com with ESMTP; 10 Mar 2022 00:14:41 -0800 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nSDwW-0004by-DF; Thu, 10 Mar 2022 08:14:40 +0000 Date: Thu, 10 Mar 2022 16:14:11 +0800 From: kernel test robot To: lijianzhong Cc: kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org, Todd Kjos Subject: [ammarfaizi2-block:google/android/kernel/common/android12-5.10 2257/9999] kernel/sched/fair.c:4424:6: warning: no previous prototype for 'set_next_entity' Message-ID: <202203101619.QCheEDyN-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) List-Id: Hi lijianzhong, FYI, the error/warning still remains. tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android12-5.10 head: 786bcb11099e8926ac5b5270de844d01c394ab89 commit: 54f66141a8834e27601fe594d68a97db01bb86b6 [2257/9999] ANDROID: sched: Add vendor hooks for sched. config: i386-tinyconfig (https://download.01.org/0day-ci/archive/20220310/202203101619.QCheEDyN-lkp@intel.com/config) compiler: gcc-9 (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0 reproduce (this is a W=1 build): # https://github.com/ammarfaizi2/linux-block/commit/54f66141a8834e27601fe594d68a97db01bb86b6 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android12-5.10 git checkout 54f66141a8834e27601fe594d68a97db01bb86b6 # save the config file to linux build tree mkdir build_dir make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash kernel/printk/ kernel/sched/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> kernel/sched/fair.c:4424:6: warning: no previous prototype for 'set_next_entity' [-Wmissing-prototypes] 4424 | void set_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *se) | ^~~~~~~~~~~~~~~ kernel/sched/fair.c:5408:6: warning: no previous prototype for 'init_cfs_bandwidth' [-Wmissing-prototypes] 5408 | void init_cfs_bandwidth(struct cfs_bandwidth *cfs_b) {} | ^~~~~~~~~~~~~~~~~~ kernel/sched/fair.c:11341:6: warning: no previous prototype for 'free_fair_sched_group' [-Wmissing-prototypes] 11341 | void free_fair_sched_group(struct task_group *tg) { } | ^~~~~~~~~~~~~~~~~~~~~ kernel/sched/fair.c:11343:5: warning: no previous prototype for 'alloc_fair_sched_group' [-Wmissing-prototypes] 11343 | int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent) | ^~~~~~~~~~~~~~~~~~~~~~ kernel/sched/fair.c:11348:6: warning: no previous prototype for 'online_fair_sched_group' [-Wmissing-prototypes] 11348 | void online_fair_sched_group(struct task_group *tg) { } | ^~~~~~~~~~~~~~~~~~~~~~~ kernel/sched/fair.c:11350:6: warning: no previous prototype for 'unregister_fair_sched_group' [-Wmissing-prototypes] 11350 | void unregister_fair_sched_group(struct task_group *tg) { } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/set_next_entity +4424 kernel/sched/fair.c 4423 > 4424 void set_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *se) 4425 { 4426 /* 'current' is not kept within the tree. */ 4427 if (se->on_rq) { 4428 /* 4429 * Any task has to be enqueued before it get to execute on 4430 * a CPU. So account for the time it spent waiting on the 4431 * runqueue. 4432 */ 4433 update_stats_wait_end(cfs_rq, se); 4434 __dequeue_entity(cfs_rq, se); 4435 update_load_avg(cfs_rq, se, UPDATE_TG); 4436 } 4437 4438 update_stats_curr_start(cfs_rq, se); 4439 cfs_rq->curr = se; 4440 4441 /* 4442 * Track our maximum slice length, if the CPU's load is at 4443 * least twice that of our own weight (i.e. dont track it 4444 * when there are only lesser-weight tasks around): 4445 */ 4446 if (schedstat_enabled() && 4447 rq_of(cfs_rq)->cfs.load.weight >= 2*se->load.weight) { 4448 schedstat_set(se->statistics.slice_max, 4449 max((u64)schedstat_val(se->statistics.slice_max), 4450 se->sum_exec_runtime - se->prev_sum_exec_runtime)); 4451 } 4452 4453 se->prev_sum_exec_runtime = se->sum_exec_runtime; 4454 } 4455 EXPORT_SYMBOL_GPL(set_next_entity); 4456 4457 --- 0-DAY CI Kernel Test Service https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org