Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp51786pxu; Tue, 24 Nov 2020 18:21:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2KKn+i5QwyE2LTo6mTGkxsGV+lHBtnB6u0sLvw0HygY1/Un6DAyKM9Ympk83lRexybJhd X-Received: by 2002:aa7:cdd9:: with SMTP id h25mr1448063edw.294.1606270905433; Tue, 24 Nov 2020 18:21:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606270905; cv=none; d=google.com; s=arc-20160816; b=XYFzGbCrWAG/FlMHDmTUFDjx2rAceIsQbmIIyTazm7d1W0F3t8qGk9cW0LwElixrwd eiV9oyPhN+CFX/+tJpsIuIiEV2F2oYUm0nqMZuspNJhumpSQDUHiEFfcnxS5UkAwtRFv ie8cWRu6RudCWaF8AGK8x/W1AHYuV8dx1i5lcK1U1LBzZ/EF5dpCG4inM1qnJVgniicS hceBwFBKIWILgWeSU4ABNtNANDn9p037kr6rEKUnIaSI9eoXAAS1b2toutzVYc4q0ySz jFT1vG5QY4q5Vm6RsYHPK65QVKV2C8DRCxqRpS2xCtM3egQBwwXPvEvAsb1a3d9vrhNQ 4seA== 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=livhqAO9Zq0Qo3duB1F628vw4HDqcudIrE5JA9QoNEk=; b=ZeSGXkttGTjvltECzocnCsA8qT6EjWBDV5yBV58BymPUpcKFnZk1j7NoXh9GdpGzu8 g6ROX9U7/mZhNK4U14nXBOc8Sek83s9Hpe1uqk8sb/1hzNywbE4VAbkJWJZJTG5hVVz+ 5l1t1dcQwSz6EGR+aOgvsm21cAXD9IooVkZDXAfjvoT7UtGTc8GUypBRuhUBCqGyLS14 vGrrPCrOUZfAVkFlnCpe1qP8hlzjuDWdBNNZwAlPON9yUe5z8VWhcFZGmurzDdeYW8Xm JzQA1hMA6lkAqRZ9qvAwnakGPamArwdxIclU+oggIsTZKhhBymzQpMDWM037EXII0BCP 927w== 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 s15si358587edj.165.2020.11.24.18.21.23; Tue, 24 Nov 2020 18:21:45 -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 S1726408AbgKYCTX (ORCPT + 99 others); Tue, 24 Nov 2020 21:19:23 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:7731 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725616AbgKYCTW (ORCPT ); Tue, 24 Nov 2020 21:19:22 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Cgl1f4f72zkZt9; Wed, 25 Nov 2020 10:18:46 +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; Wed, 25 Nov 2020 10:19:05 +0800 From: Zou Wei To: , , , , , , , , , , , CC: , Zou Wei Subject: [PATCH -next v2] sched/topology: Mark some symbols with static keyword Date: Wed, 25 Nov 2020 10:30:47 +0800 Message-ID: <1606271447-74720-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? 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; void rebuild_sched_domains_energy(void) { -- 2.6.2