From nobody Sat Feb 7 06:35:10 2026 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 4B497C77B73 for ; Wed, 31 May 2023 12:05:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235845AbjEaMFJ (ORCPT ); Wed, 31 May 2023 08:05:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235792AbjEaMEx (ORCPT ); Wed, 31 May 2023 08:04:53 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA7F410B; Wed, 31 May 2023 05:04:51 -0700 (PDT) Date: Wed, 31 May 2023 12:04:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1685534690; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ldt2eBdZjUhBa/gsmh/4m1hI9n4EcmmtGa8p/lsAqBI=; b=RnxiO3Ys2tdSFDNKjjdH5udvVrKlGOTJeyIpBgqPuMtStfiXgNUCWjqwuhZrdc0ACfErLD eqkeaCGhWSRA6q9p9u2aaipVW2vYAO/Ochwx4g4Nh0f01/BaHZMbqKzaEFDB08wajk8DYj GQd0Fkd2FOxaQIvHNSNjVGZ+4K8beSiFZdv5b+bVIn/MGSokS/U5IE0b0JwlcCUJyn7EPe bokl1LldS1XlEdToTbLjCLZWftHrVGLbiytoKbBG4gaJOtDGYA3CrHp2tZ9lLohLpwJZ5D 9iBgMNGS891X3v50vcESrTa0kF9TcObQkSpy0D2dPmRvC1/dlv2N1jXEJp8qcw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1685534690; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ldt2eBdZjUhBa/gsmh/4m1hI9n4EcmmtGa8p/lsAqBI=; b=iAKG8byCxOUveQS47vtSgcG7qFYutbrlZdE2bZz8w46mXAahHT/NbvATHRSlwYFt8RE6y6 njw7gmJfP77egkBw== From: "tip-bot2 for Arnd Bergmann" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/fair: Hide unused init_cfs_bandwidth() stub Cc: Arnd Bergmann , "Peter Zijlstra (Intel)" , Vincent Guittot , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230522195021.3456768-4-arnd@kernel.org> References: <20230522195021.3456768-4-arnd@kernel.org> MIME-Version: 1.0 Message-ID: <168553469008.404.7937834671472850266.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/core branch of tip: Commit-ID: c0bdfd72fbfb7319581bd5bb09b4f10979385bac Gitweb: https://git.kernel.org/tip/c0bdfd72fbfb7319581bd5bb09b4f1097= 9385bac Author: Arnd Bergmann AuthorDate: Mon, 22 May 2023 21:50:19 +02:00 Committer: Peter Zijlstra CommitterDate: Tue, 30 May 2023 22:46:25 +02:00 sched/fair: Hide unused init_cfs_bandwidth() stub init_cfs_bandwidth() is only used when CONFIG_FAIR_GROUP_SCHED is enabled, and without this causes a W=3D1 warning for the missing prototype: kernel/sched/fair.c:6131:6: error: no previous prototype for 'init_cfs_band= width' The normal implementation is only defined for CONFIG_CFS_BANDWIDTH, so the stub exists when CFS_BANDWIDTH is disabled but FAIR_GROUP_SCHED is enabled. Signed-off-by: Arnd Bergmann Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Vincent Guittot Link: https://lore.kernel.org/r/20230522195021.3456768-4-arnd@kernel.org --- kernel/sched/fair.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 2c1b345..a7a8ccd 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -6169,9 +6169,8 @@ static inline int throttled_lb_pair(struct task_group= *tg, return 0; } =20 -void init_cfs_bandwidth(struct cfs_bandwidth *cfs_b) {} - #ifdef CONFIG_FAIR_GROUP_SCHED +void init_cfs_bandwidth(struct cfs_bandwidth *cfs_b) {} static void init_cfs_rq_runtime(struct cfs_rq *cfs_rq) {} #endif