Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp619527pxb; Tue, 2 Feb 2021 13:24:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJymWPkbmOy9tD7Ww1AimN7YuQM8Xz/Pxmu3bokLEin7pVmIUAcb3P4FNK5vJd/IHnqs1+oE X-Received: by 2002:aa7:cac6:: with SMTP id l6mr23370edt.357.1612301086449; Tue, 02 Feb 2021 13:24:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612301086; cv=none; d=google.com; s=arc-20160816; b=C6/uxcv74tBkJXhfjsU+3EtQJiBBD57WwS0NpxQ/di24MJLuAIjT3CFTaXhRvR/XYN XWFrFsGgCuyX0WCu7YDuRl/xDr7HzSH8iGhrRBiWGt7uhothwSWOebbQO/qG5Ul1VfDQ ydeaJbvBGQxTOq5iwqWjGhw8QsZN+tpegFI3pR6zV3g/XsATieNwZK43J5xD0aABupzs Ezw1RpwCp22HAkwfdU9Re91UJSn+IFo0GagONayiuGhhmwZMGLBT+n+wvo0jZ2Zqnc8Z WWMNMFDd5LtdkTWq6S0Vq1NGtUwl3Y7Bf/XfhOcQV53VPj+Vt+LLX6sybu14yVYAR2Ki jmjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=tocwlRn2C0xFHFHXoyiewN0FkeSvCYQTnBhHTAPcMRg=; b=CwJEmW3qX0LPjuMeMgTvvW8jkZ0SovWDi5SwA6R852cboM2Vt5H44rEguTl87DXnJX hBwnCzRfdEYHgJJyn/ytcSReTdwLZNTBAo/rnTsPdwIRL8JI40fNhRJtyIknR7IMqkOX hu3kTV/SCz6DP7huEmHMviTwOI2fdbIc8Of4Q3y4lJbWyuPI/wkHr0H+lzfEmfurkYtJ CEAghEtg312Aghj5kB1ub4c1FRWQibBAosrkqFGUnHqJJnjIWIpGOexkSdsiDlG+P/Mx XqUISpkad2IUxvTZFIF9C/gS1PbX+3u7croHQZUfih+nnEMrEwKlsETPNlXPHfAunVLu pFLg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g5si14321751edj.194.2021.02.02.13.24.20; Tue, 02 Feb 2021 13:24:46 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231518AbhBBMdK (ORCPT + 99 others); Tue, 2 Feb 2021 07:33:10 -0500 Received: from foss.arm.com ([217.140.110.172]:48908 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231380AbhBBMdJ (ORCPT ); Tue, 2 Feb 2021 07:33:09 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 702351FB; Tue, 2 Feb 2021 04:32:23 -0800 (PST) Received: from localhost (unknown [10.1.198.32]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 079AB3F718; Tue, 2 Feb 2021 04:32:22 -0800 (PST) Date: Tue, 2 Feb 2021 12:32:21 +0000 From: Ionela Voinescu To: Zou Wei Cc: xuewen.yan@unisoc.com, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, qperret@google.com, rafael.j.wysocki@intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next v2] sched/topology: Mark some symbols with static keyword Message-ID: <20210202123221.GA7003@arm.com> References: <1606271447-74720-1-git-send-email-zou_wei@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1606271447-74720-1-git-send-email-zou_wei@huawei.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, +Xuewen Yan, who submitted a similar patch recently. On Wednesday 25 Nov 2020 at 10:30:47 (+0800), Zou Wei wrote: > Fix the following sparse warnings: > > 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? > > Fixes: 31f6a8c0a471 ("sched/topology,schedutil: Wrap sched domains rebuild") > Signed-off-by: Zou Wei > --- > 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 5d3675c..2676687 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; > Reviewed-by: Ionela Voinescu Apologies for introducing these warnings with my previous patch. Kind regards, Ionela. > void rebuild_sched_domains_energy(void) > { > -- > 2.6.2 >