From patchwork Mon May 22 19:50:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 97586 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1694659vqo; Mon, 22 May 2023 13:16:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6qb+EdoXrR4NEZgkfZ/Yhf9P5v3ChuN9JqVeyECzNDllMGwyOjaXLa4cZ8UnUHQk+nJCn2 X-Received: by 2002:a05:6a20:8f1e:b0:10a:e8b1:34bb with SMTP id b30-20020a056a208f1e00b0010ae8b134bbmr7717397pzk.56.1684786610226; Mon, 22 May 2023 13:16:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684786610; cv=none; d=google.com; s=arc-20160816; b=dXfV+xGWdze1lFjT+pH1csxR7x5c7Km3J0zHUsGt94eWv88aOb8fHCpOicva4t2Orf LAUGhC9M7xlneD0dWqcGmpSv0FmoOnLqipP/fKFlO+TWqDALvGe7r9UdPzgyZc9Hx0rx TdJByKZBUtTXIICE1s237PmoFdtgBhwYO9lYXFh2U35UqTDnJJ1dfdyC0cnTlpZImyFr expb2o30VZPTSMcypO+sXf0TLprlRkRa1pP3+96JSTiLXNtAsMfSsBithnOoVpwBLmTj qsYMa6NoDRxHYJVOx+TqcrPUaX0ltq1OzORikfuY1rofy9Xf4J5AQFmepIuoCXFnPYsp BrOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dDpYhysHGQNaBObSHi9x6ZTvlS1fc+j5yI8iYZ/uPw8=; b=0sI3E92eQcIEqNkMSPLJGi0fd/YnlRMAof+lGv4EigEe3VSD76fLSTbg6pYl4iMUeS 136obzekygilj7K6x52c/h1bT6/EQ9QSXA6PP3oYNJJ/dWXkhG6TaVPmFTW6d4vM2B9d tRmeO/kDJeDU9WGMKgWYBqdKIT5jKCFyOuvSOCQmpbfHdNcvRyOdBKuIwGiB2IQQy3Np XaR/HwYQzFhJDW6YAulVsiJIVOdjOPYFq0+LjemjjyRDs05wTRD7mwthdV2ZOgx3EY65 7qO3oLBH7JjpRmvbozUIlf3SbIjoulD0Rrmpl+uNq6kxBPlChRauw1r+D51Fx1L210yJ sQuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PYEj2zOl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q14-20020a63750e000000b0053eee173732si213734pgc.161.2023.05.22.13.16.34; Mon, 22 May 2023 13:16:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PYEj2zOl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235457AbjEVTuv (ORCPT + 99 others); Mon, 22 May 2023 15:50:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235422AbjEVTup (ORCPT ); Mon, 22 May 2023 15:50:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97D44184 for ; Mon, 22 May 2023 12:50:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 162C062B04 for ; Mon, 22 May 2023 19:50:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0258C433EF; Mon, 22 May 2023 19:50:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684785041; bh=DfCIKMSnSbVddp/C9i9OSpp88I+LZk39yiHKdmQAty0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PYEj2zOl4sr+IPXQ2IhzxhmUaEl68mRHT68KXDtpvG03OJsbvAgC5n6lsQ2UKyVqb YtWkwMdy73DW6kHmOJ2ZF+BajlBadfaHhEUz0kqYkOx9aPM0kgGM8xEps1mWqJCOwe 8bvQFdtDtsar4Yuqhr1mnhAidLPWxM85+HVmq7bMCmCGK5ohb4rbZ5igCRn1TITVgJ C8EGEv+tf3AsEX3fI+eQ3XaBeMjCqMb1JXpDK+PwcX60ZJzwUTjD7YBldQWaS03jF2 L6p74B5L3bAfBP/VrDwvQzxCHY9U9rifoc1zjWri3YqPBRTYAQo7sCDFw5GATkfLpv QhmQ9g+2h/Glw== From: Arnd Bergmann To: Ingo Molnar , Peter Zijlstra Cc: Arnd Bergmann , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , linux-kernel@vger.kernel.org Subject: [PATCH 3/5] sched: fair: hide unused init_cfs_bandwidth() stub Date: Mon, 22 May 2023 21:50:19 +0200 Message-Id: <20230522195021.3456768-4-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230522195021.3456768-1-arnd@kernel.org> References: <20230522195021.3456768-1-arnd@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766626804745232214?= X-GMAIL-MSGID: =?utf-8?q?1766626804745232214?= From: Arnd Bergmann init_cfs_bandwidth() is only used when CONFIG_FAIR_GROUP_SCHED is enabled, and without this causes a W=1 warning for the missing prototype: kernel/sched/fair.c:6131:6: error: no previous prototype for 'init_cfs_bandwidth' 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 Reviewed-by: Mukesh Ojha --- 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 2c1b345c3b8d..a7a8ccde3bd7 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; } -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