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 DDF59C4332F for ; Sun, 12 Nov 2023 19:38:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232118AbjKLTis (ORCPT ); Sun, 12 Nov 2023 14:38:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232115AbjKLTip (ORCPT ); Sun, 12 Nov 2023 14:38:45 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C52222139 for ; Sun, 12 Nov 2023 11:38:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699817922; x=1731353922; h=date:from:to:cc:subject:message-id:mime-version; bh=6B4gEHCmKZknHpTAhOUVFA0kZjj45PJ9bFyvzn0eQCs=; b=BPg1DWiu1Vo8o6ws+0OlqKw+S56rm5zsoDPEaPZoshog28pNvGK0MZP5 a3n3bZlofsZULtL9Y4QlThmiBBzz/qKtuRsNbz7d/3mp178vsrRuIfF5e HKbNmcdkXjHdzIlqvuvXYCgGFJBd1v6EUM2yxv9LkNv5Kq+F+LRdH0Gyp PsDqQlKy0ipnHNMXFsS/rFa1XcLhECcSYNUZK+5yTwyGo/aAy6WVe9NYY xi/B03ikg3mt05j95IxP3T4VZdKO51B6KyssY5fJB1BvNm4bcnrMHSUlr /nmYWlrOeamZ9LV8IPGLjfJswRybJ0CJg1dWAlFAtMDc12FrrzysFfW/N A==; X-IronPort-AV: E=McAfee;i="6600,9927,10892"; a="387513740" X-IronPort-AV: E=Sophos;i="6.03,298,1694761200"; d="scan'208";a="387513740" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Nov 2023 11:38:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,298,1694761200"; d="scan'208";a="12299841" Received: from lkp-server01.sh.intel.com (HELO 17d9e85e5079) ([10.239.97.150]) by fmviesa001.fm.intel.com with ESMTP; 12 Nov 2023 11:38:41 -0800 Received: from kbuild by 17d9e85e5079 with local (Exim 4.96) (envelope-from ) id 1r2GI2-000BT4-2t; Sun, 12 Nov 2023 19:38:38 +0000 Date: Mon, 13 Nov 2023 03:38:11 +0800 From: kernel test robot To: Baisong Zhong Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Luis Chamberlain Subject: kernel/sched/rt.c:9:18: warning: 'max_rt_runtime' defined but not used Message-ID: <202311130334.4yJKVl38-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Baisong, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 1b907d0507354b74a4f2c286380cd6059af79248 commit: 28f152cd0926596e69d412467b11b6fe6fe4e864 sched/rt: fix build error when CONFIG_SYSCTL is disable date: 1 year, 7 months ago config: i386-tinyconfig (https://download.01.org/0day-ci/archive/20231113/202311130334.4yJKVl38-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231113/202311130334.4yJKVl38-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202311130334.4yJKVl38-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from kernel/sched/build_policy.c:43: kernel/sched/rt.c:309:6: warning: no previous prototype for 'unregister_rt_sched_group' [-Wmissing-prototypes] 309 | void unregister_rt_sched_group(struct task_group *tg) { } | ^~~~~~~~~~~~~~~~~~~~~~~~~ kernel/sched/rt.c:311:6: warning: no previous prototype for 'free_rt_sched_group' [-Wmissing-prototypes] 311 | void free_rt_sched_group(struct task_group *tg) { } | ^~~~~~~~~~~~~~~~~~~ kernel/sched/rt.c:313:5: warning: no previous prototype for 'alloc_rt_sched_group' [-Wmissing-prototypes] 313 | int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent) | ^~~~~~~~~~~~~~~~~~~~ kernel/sched/rt.c:716:6: warning: no previous prototype for 'sched_rt_bandwidth_account' [-Wmissing-prototypes] 716 | bool sched_rt_bandwidth_account(struct rt_rq *rt_rq) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ >> kernel/sched/rt.c:9:18: warning: 'max_rt_runtime' defined but not used [-Wunused-const-variable=] 9 | static const u64 max_rt_runtime = MAX_BW; | ^~~~~~~~~~~~~~ vim +/max_rt_runtime +9 kernel/sched/rt.c d505b8af58912a Huaixin Chang 2020-04-25 @9 static const u64 max_rt_runtime = MAX_BW; ce0dbbbb30aee6 Clark Williams 2013-02-07 10 :::::: The code at line 9 was first introduced by commit :::::: d505b8af58912ae1e1a211fabc9995b19bd40828 sched: Defend cfs and rt bandwidth quota against overflow :::::: TO: Huaixin Chang :::::: CC: Peter Zijlstra -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki