Received: by 2002:ac8:156:0:b0:3e0:cd10:60c8 with SMTP id f22csp1803238qtg; Wed, 22 Mar 2023 02:31:05 -0700 (PDT) X-Google-Smtp-Source: AK7set/yW+GtqRTXggC4H7t4Hy5CoNCwiw8t/CpmnSqu1qIU9XDuY9rG6FWxlOyQK94MhEU8XQ0g X-Received: by 2002:a17:907:78cf:b0:889:58bd:86f1 with SMTP id kv15-20020a17090778cf00b0088958bd86f1mr6348731ejc.14.1679477465373; Wed, 22 Mar 2023 02:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679477465; cv=none; d=google.com; s=arc-20160816; b=a0l3W2XIgW17QRW3gM6ei4kmt2i+PCe5CEtGRzSDRJwxAGUHclvPjT/AaPR64Lt5X8 Nd+Plij4ZR41pm+qEnhu+Pg8kbvaQ5nBRiXOoKkJoPQtwJNzVGG2qjGrcC+qHT0r4c8+ 4xt7ee7mJ+B85hqdqXCs8mnhD7hGfhAcHmoXn28/Mb50BFziIPbdRxYhE+ZjLw6aKNpR mocTWa/ZciX9qbMZyNymnBedeK1O+fNQ3/ES7IcD8Il4zMe3TFsDDtUnaleLxgxL11nN dHQIgkPpXGxluyMP8yeV2F5qk7t26JSgKnafv6oKspUgbmHOcuM17DCzs7LmV4cqVUgu de6A== 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=ZUDXQN2TPlL+6pbR5pqWxYbtYIPTF74Zq4msCmdBph4=; b=o1cGJXYYRqIrIJHbUzG/bfrY0EknlJHDd5HkzRDxdRPg/pJOgeRbxQE038bihefVhV h/IFuD3kRSnnRWDLJB0NwzQbwEqB9HcOd13sVasORICv5cbFsmA6ZGOcX0/NkGfztG6x QWi4RUaofFNODDOmlyoXqK5ttCuOjD2ccsGAb10fvP3AwPImiorSFUWhIOqSPTcFxAa+ UuKOyyefVr9LdX5uYrboLx6SJxP0awGOvtU+foBqVXfSOLXsogCwCKC97nvXXutcpWRN B9gwOMof9RwZ6Xge37laXoLqgQnItVGCFJFMTrFdal62zddQkPl0cgZxjOK4Bx5jlxil 4JTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=oRoQ9W7g; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="dYxcQ1/g"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp6-20020a1709073e0600b008c215db35a7si17451974ejc.37.2023.03.22.02.30.40; Wed, 22 Mar 2023 02:31:05 -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=oRoQ9W7g; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="dYxcQ1/g"; 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 S230469AbjCVJXd (ORCPT + 99 others); Wed, 22 Mar 2023 05:23:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230464AbjCVJX1 (ORCPT ); Wed, 22 Mar 2023 05:23:27 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CCA5BBA4; Wed, 22 Mar 2023 02:23:01 -0700 (PDT) Date: Wed, 22 Mar 2023 09:22:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1679476945; 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=ZUDXQN2TPlL+6pbR5pqWxYbtYIPTF74Zq4msCmdBph4=; b=oRoQ9W7g1WSuvCMqTlSBT2IRU7V+W/fCa42V3lre0H3Ty/I4gLfi5qFyQCE4xHDredGQBX CE9+4vbIiRRtlUrK6Ij8+pjEL0R/fOT1Xg4sjtMI8vXXBxznyu3FqNtRRrpr7mUfxwiFKJ k0nBIkBOryoDe9Vy9xbfQW7tV8+aR8O+KiH4UoBAjzzqFqAQE2dT5feJco7LU0vXxRauQV 7mvE7W4YVT2PWJUJLQ+4NENu6Q5aPoillUdMjNLJ+XnLIVgpsj4Fh/thb4Ibq8QyI3lKai ACjtHtzUR+c7SgTgqsKvRdwsskk2VGpQZRx0KjGRk8Akeks/Rin+Wn/145aTTQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1679476945; 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=ZUDXQN2TPlL+6pbR5pqWxYbtYIPTF74Zq4msCmdBph4=; b=dYxcQ1/gLICZ4HhFTYrJNTu2QA/iD1uSLFK8aS6ZXMjt2kqZ+yOqlZGZdjxtCbyoz+xJWp XNmm97vi/2T91RBQ== From: "tip-bot2 for Tom Rix" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/topology: Make sched_energy_mutex,update static Cc: Tom Rix , "Peter Zijlstra (Intel)" , Valentin Schneider , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230314144818.1453523-1-trix@redhat.com> References: <20230314144818.1453523-1-trix@redhat.com> MIME-Version: 1.0 Message-ID: <167947694527.5837.14989784602233129020.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: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=unavailable 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 The following commit has been merged into the sched/core branch of tip: Commit-ID: d91e15a21d4b3823ce93a42b05f0d171689f4e6a Gitweb: https://git.kernel.org/tip/d91e15a21d4b3823ce93a42b05f0d171689f4e6a Author: Tom Rix AuthorDate: Tue, 14 Mar 2023 10:48:18 -04:00 Committer: Peter Zijlstra CommitterDate: Wed, 22 Mar 2023 10:10:57 +01:00 sched/topology: Make sched_energy_mutex,update static smatch reports kernel/sched/topology.c:212:1: warning: symbol 'sched_energy_mutex' was not declared. Should it be static? kernel/sched/topology.c:213:6: warning: symbol 'sched_energy_update' was not declared. Should it be static? These variables are only used in topology.c, so should be static Signed-off-by: Tom Rix Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Valentin Schneider Link: https://lore.kernel.org/r/20230314144818.1453523-1-trix@redhat.com --- kernel/sched/topology.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index 051aaf6..6682535 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -209,8 +209,8 @@ sd_parent_degenerate(struct sched_domain *sd, struct sched_domain *parent) #if defined(CONFIG_ENERGY_MODEL) && defined(CONFIG_CPU_FREQ_GOV_SCHEDUTIL) DEFINE_STATIC_KEY_FALSE(sched_energy_present); static unsigned int sysctl_sched_energy_aware = 1; -DEFINE_MUTEX(sched_energy_mutex); -bool sched_energy_update; +static DEFINE_MUTEX(sched_energy_mutex); +static bool sched_energy_update; void rebuild_sched_domains_energy(void) {