Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2475600pxb; Tue, 13 Apr 2021 02:53:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzriMlKdr9fTMASQ5UBUSrq/rS5klBx5rh3Xg6QIJM8F5xgevi9MMEHMRAyB+rSBqMwZjgA X-Received: by 2002:a17:902:5608:b029:e7:32fd:ce99 with SMTP id h8-20020a1709025608b02900e732fdce99mr30557475pli.0.1618307595030; Tue, 13 Apr 2021 02:53:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618307595; cv=none; d=google.com; s=arc-20160816; b=qOUXnD8hjdL0uDY3pNuWWzX7I4VPtLcPgJXzyoD6V4MI3NYSwVCxQVZbFgQoHfCRrN HnC5QMAFL+IfxhqhR934P/q7Xaxc7a+nIUkNlYQF91en3lNWcIy3/ltuChqbW0dr6Y+N ywOMvCM1slCglNXZCoxureckLiJXXqLKNXOgfJR89+mEEPSt2qwx7sp/Ygv3AqadsvJJ 1zrXakePr2g6PTsheX474I88hz45/bsI24j/o8DalNGNxfqsIqGFlUShh9UBXlwx7W6F HQi3E3ydsmRaGYqSCjygyzgAU1gpH8xJyayYZmpG9XDn2O2DxLEM9a521nBD1acm9B+Q kwyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=q/ZG+pCcF9dWPEWXNf+sTrl+9ocn3tujNZhS/yVRHoY=; b=Y94EZHXemg9tMrOanIwBxg5ay4hvgu+0eGYCjYTdYXksl/4OFcASMUPYosEATVYy/y xMRG0VesYxIFT9YE+y7V473MZ+A68z7rUEeFKbzieCl+X2J9Ngyu4umUK62HK3EFH0j7 Mr0IWUjnE+YRzLaCJaKlqpz4d1E5DfI46kuwr267zekgqHOOtmn5dh3liWkAkC4jgl42 XgTxgaHQGNM4BCP7fgic2E0jmc+oKQncpZijOkwx6TSgg22P28ebOYez3OWtCdsPapdP GCOIrtN1e0PXPVOJXM/tR9sMTgvy2XFezQGE6xPHuKbuNG5JA8J4Ya0m1LJ+o+hAVOwb ZWgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WgtR6uJ2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t127si16646049pgt.514.2021.04.13.02.53.02; Tue, 13 Apr 2021 02:53:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WgtR6uJ2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238835AbhDMJYe (ORCPT + 99 others); Tue, 13 Apr 2021 05:24:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237403AbhDMJYd (ORCPT ); Tue, 13 Apr 2021 05:24:33 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4345DC061756 for ; Tue, 13 Apr 2021 02:24:14 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id w7-20020a1cdf070000b0290125f388fb34so7730611wmg.0 for ; Tue, 13 Apr 2021 02:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=q/ZG+pCcF9dWPEWXNf+sTrl+9ocn3tujNZhS/yVRHoY=; b=WgtR6uJ2GYaDkNUBtlk1alYw407nGKyIKWQ6rNbBFEtGxPGXAaUvmJqds6RoKjsPYj QjRDwyFAJNQA3cdmiuh6Xm0GbWSyR70m/80C7sccunne+PywBlKlTLsbxZJ41Fi4FA7N ydTtKpbmmhs4xugElMGX3LsGxV44QaR7FpU0blEwOoc9S4IJu1ajipv7OH5D2A3FDa7I loj16JPo8loeYCa/5Z4dlW/tvc5tJuXUl0gXeeXhvxE63KAZQ9N38lXQBFtN00kp2V1R TliA3bTkJLflNq05v5qMRGkuvI86kXna1SHZc+8ZkIUgf4WTOYO9f/WLn0lHv55Ogp42 MdFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=q/ZG+pCcF9dWPEWXNf+sTrl+9ocn3tujNZhS/yVRHoY=; b=OJStAVlX94ccLJaNbhK7V8/JUxRXbZKKgOeM9MF96YR2sASum5PUbK9XTLs15puclg glBWogjHXnZ4TPQAaa1wStPhLSYIBBv28SS35d3QT1Ib6sRysp63yv0zjkPZzi7hAIWR z0glWYH+CwNHFWzix4A/yWFOZi3cDbPLLIy6Xmv3EY7WdJQ4DhTf5g8v/GZTaYyB59LF M0He1OG5G78H/Yo+zCAVRj49q3/dbXGob2BUnd6WuOr1YpQADNGNk3fixs7S60R0d9jb 9bQJFhjNWEzIJbBLuyz9tDQ0Wv0Jru6ugPdAI6rjEMQ3hp6UA3ODuc3hxDx9iHQ7T0EV xBLA== X-Gm-Message-State: AOAM533VH96zSGzEjm3hRiVv+NmLJ2TNee5LIc/qowmnhIgOsKm5D/GS nPdbHBdJxS4GnTZrM7C5n9zGJA== X-Received: by 2002:a1c:6446:: with SMTP id y67mr3049107wmb.145.1618305852795; Tue, 13 Apr 2021 02:24:12 -0700 (PDT) Received: from google.com (105.168.195.35.bc.googleusercontent.com. [35.195.168.105]) by smtp.gmail.com with ESMTPSA id a22sm11064362wrc.59.2021.04.13.02.24.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Apr 2021 02:24:12 -0700 (PDT) Date: Tue, 13 Apr 2021 09:24:09 +0000 From: Quentin Perret To: Peng Wu Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH -next] sched/topology: Make some symbols static Message-ID: References: <1617887537-38438-1-git-send-email-wupeng58@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1617887537-38438-1-git-send-email-wupeng58@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 08 Apr 2021 at 21:12:17 (+0800), Peng Wu wrote: > The sparse tool complains as follows: > > kernel/sched/topology.c:211:1: warning: > symbol 'sched_energy_mutex' was not declared. Should it be static? > kernel/sched/topology.c:212:6: warning: > symbol 'sched_energy_update' was not declared. Should it be static? > > This symbol is not used outside of topology.c, so this > commit marks it static. > > Reported-by: Hulk Robot > Signed-off-by: Peng Wu > --- > 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 d1aec244c027..25c3f88d43cd 100644 > --- a/kernel/sched/topology.c > +++ b/kernel/sched/topology.c > @@ -208,8 +208,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); > 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) > { > FWIW, that has been reported some time ago: https://lore.kernel.org/lkml/1606218731-3999-1-git-send-email-zou_wei@huawei.com/ https://lore.kernel.org/lkml/1606271447-74720-1-git-send-email-zou_wei@huawei.com/ But otherwise, this looks OK to me. Thanks, Quentin