From patchwork Wed May 31 12:04:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 101400 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2834740vqr; Wed, 31 May 2023 05:19:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6FmWmkTaHBh9okojWMEiKBhMSu9r1nhMQr5RWjx4m9ozIRC8r9dsMcqGu0FpJNqsF5JMpb X-Received: by 2002:a05:6a00:23ca:b0:643:6b94:374b with SMTP id g10-20020a056a0023ca00b006436b94374bmr7713413pfc.1.1685535551064; Wed, 31 May 2023 05:19:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685535551; cv=none; d=google.com; s=arc-20160816; b=HaXHw/xRsZop6l51wgaSZDiRj+3grK55nGyANhjfD4VMD3b0zUlpR2JZjzgjitCE3p CHj3zcEnhnCTAfDl9FTEFcXP8OMN9RLumKhQvka5fcYj/e1LOqkJrw2jxAxIr4GRSiew mmoNg6weqI9dH7mAmm0xGDAS+lFjR+APYTn7lcY0IhII4S24ThvmzU58BCpJU/9xvfHM LLNKd+Da/b5S6E0QZTbG9nk0PLR7DZdVw5fI3M19VvJjl0AN5L9swb/uB3DlQRtsV+TD hoY06usqo1MIRKCVxriIflENda6NhcZB3Tw3t7F0xel8EKAxkFllTSksdp7C+9diAk01 YSEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=jAHu/ZeCNq2zA/+Hvbn6tZi8UxHRbFPIWy674Hkm38E=; b=X7+kmpq4i/fnXch2H6L/JwnN7IjakHGwDN5l3Sv/XAwKohPe5iapC+wbckGsT+Zs5y +IBVfU1BC6B5+uJtYIJ5Z6Yu4mqMkK6wws3g0wiNlPH3Si3Ev9P9eg/Y/UiL+MJ72Y2v g/iqLAZUEWjScUvdJNRRYwpwgmrQx020bjejUme1rJt53vGAJsuSZpofi5jSfytCa3gU BVG9lOI8LHLWEz1sdGF+5c0qJXQ0APtb/WDp9HGoVX2A7RG4NP3M2gd2N77wpDQZ8+h5 /8mQLqmiToFzNrku8ZyLAMLZMI4jh7U5GA94/bIVBeo5ECSuj0YmmIwxObX4ivVqUqc6 XOjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VMC5CcQ3; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=7itMFfwr; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p15-20020a63740f000000b0053f2803af48si852941pgc.581.2023.05.31.05.18.56; Wed, 31 May 2023 05:19:11 -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=@linutronix.de header.s=2020 header.b=VMC5CcQ3; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=7itMFfwr; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235820AbjEaMFP (ORCPT + 99 others); Wed, 31 May 2023 08:05:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235811AbjEaMEy (ORCPT ); Wed, 31 May 2023 08:04:54 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1517B10E; Wed, 31 May 2023 05:04:53 -0700 (PDT) Date: Wed, 31 May 2023 12:04:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1685534691; 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=jAHu/ZeCNq2zA/+Hvbn6tZi8UxHRbFPIWy674Hkm38E=; b=VMC5CcQ3Jvl9m9h1W58szK4kJXB2WowZ1bghSlopHsV5Hs6WF/MOsmQODgsmg1JNTXdv+u mUG09EoZ9Yl91d5yZPnId1F4AY59sThwc0OyOqwSdvahVbHEOM7boBJi1GERCOmlElM7Ix YQuygTMB0fzsCe75wge6xdNDnEnYb6OzDWG41COlOg7KtpNFWLQXZIwWhpbkNrvOZgLchP OcMd5Edzl4viEBWgjoeSPiS8yG1uCMDkEADEQcCESxNDs97KE1Mg2DgCxzWw6hgLSfeu/2 8AO0hSqxENCYhl4yXXpiInliexz/se8GlUhxfBnZQJ3RkMiE7yxNjsmye+N5Dw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1685534691; 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=jAHu/ZeCNq2zA/+Hvbn6tZi8UxHRbFPIWy674Hkm38E=; b=7itMFfwrSUbIfyZdPqDaFOSYyOpvi73hTyuDwDIRcqj/aAYEQRjwqOnibtro1tP/jgDt5a 9ZCQ2y1iL+qOBUAg== 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: Hide unused sched_update_scaling() Cc: Arnd Bergmann , "Peter Zijlstra (Intel)" , Vincent Guittot , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230522195021.3456768-2-arnd@kernel.org> References: <20230522195021.3456768-2-arnd@kernel.org> MIME-Version: 1.0 Message-ID: <168553469099.404.5063205940562431875.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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?1767412126081848786?= X-GMAIL-MSGID: =?utf-8?q?1767412126081848786?= The following commit has been merged into the sched/core branch of tip: Commit-ID: d55ebae3f3122b07689cc4c34043114e09ce904c Gitweb: https://git.kernel.org/tip/d55ebae3f3122b07689cc4c34043114e09ce904c Author: Arnd Bergmann AuthorDate: Mon, 22 May 2023 21:50:17 +02:00 Committer: Peter Zijlstra CommitterDate: Tue, 30 May 2023 22:46:24 +02:00 sched: Hide unused sched_update_scaling() This function is only used when CONFIG_SMP is enabled, without that there is no caller and no prototype: kernel/sched/fair.c:688:5: error: no previous prototype for 'sched_update_scaling' [-Werror=missing-prototypes Hide the definition in the same #ifdef check as the declaration. Fixes: 8a99b6833c88 ("sched: Move SCHED_DEBUG sysctl to debugfs") Signed-off-by: Arnd Bergmann Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Vincent Guittot Link: https://lore.kernel.org/r/20230522195021.3456768-2-arnd@kernel.org --- kernel/sched/fair.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 48b6f0c..2c1b345 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -684,7 +684,7 @@ struct sched_entity *__pick_last_entity(struct cfs_rq *cfs_rq) /************************************************************** * Scheduling class statistics methods: */ - +#ifdef CONFIG_SMP int sched_update_scaling(void) { unsigned int factor = get_update_sysctl_factor(); @@ -702,6 +702,7 @@ int sched_update_scaling(void) return 0; } #endif +#endif /* * delta /= w