Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp43773pxu; Tue, 24 Nov 2020 18:03:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7WXcDdVgrCFPdorTbUR9sNqqTvTreBr9Gjc0wikmvHKq08bYLxSlv9OabrLzr65C385NO X-Received: by 2002:a17:906:4dd3:: with SMTP id f19mr1173565ejw.364.1606269837603; Tue, 24 Nov 2020 18:03:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606269837; cv=none; d=google.com; s=arc-20160816; b=f5zbyNk1MqAcdLWYoKK7FGwgk5/O33mwlBTNp88oiyVuJmhaWMbr0xbrmkO52Il2c5 QvMUaqBtKQKTX6YnszngspAko4dK6wWB6kj2vE30Viu9d3B+fnJRC93I1jRPDPBdsAQK Zsk/7Jdy/az89iNLLOBRryeM9jRFuDGQp7k2BlMoNjsLszb3c3gQF2s4nmUwe2wg/GE+ nW8LPew7CFOtfMnAKRwq7Q7Pg6Iu3Ne+Bo9rRrnIYFhfoA3eLNCJ66nnXOT7M92zk0Hi 7rABdPhPyg/YK4pQoehKqR0h0CgfxKqH5kxZDeBWmzRkJ9T6HN4RI3/R13ns50zhvUB9 oUHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=//ZusTsU7gO06h94wm2xb7o/b7/RqFuBoT6ignlxF2Q=; b=j6KDFkteiTc/Y//xFARrkc/kGhT9Ufb1b1c53GET/mu7N0mf/2F7XVBaqo7faKYvE2 fGZzvkKV9bap9iJ6geB+X59k94J2hXnVNj4VXGYqy63jM39N15/1vvEs/vPCxrLV9MzI 9eCN+AAWA3qxzLQbgtjrg/bssmAixTrYEBprvmVQSiX2BJUT2R5rquYhCS+kj3T3ITeA GEPXIgt++ZyvPDy77gM/O71Nd1KpdztFp5Q799218vPijbA9IpziMgMbRbJc9yC5j6st Ywg5Q2pGHglFPKBpbeRl9CMtxwYpwdyYxbGMVXuqKHBQE9b1anKk1PyX1iwjdaK6zz5j V5zw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m16si431229ejc.357.2020.11.24.18.03.29; Tue, 24 Nov 2020 18:03:57 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732968AbgKXLkn (ORCPT + 99 others); Tue, 24 Nov 2020 06:40:43 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:7671 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727909AbgKXLkm (ORCPT ); Tue, 24 Nov 2020 06:40:42 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CgMX019WBz15KDX; Tue, 24 Nov 2020 19:40:16 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Tue, 24 Nov 2020 19:40:29 +0800 From: Zou Wei To: , , , , , , , , CC: , Zou Wei Subject: [PATCH -next] sched/topology: Mark some symbols with static keyword Date: Tue, 24 Nov 2020 19:52:11 +0800 Message-ID: <1606218731-3999-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? 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; void rebuild_sched_domains_energy(void) { -- 2.6.2