Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp433187pxf; Thu, 8 Apr 2021 06:14:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAnVfy4qxtmaIBDtzWPp/+UUN1WddqKptiOwEMO3+qIdlGuNRIau4U/K88+9WgnNcxCJ8G X-Received: by 2002:aa7:df81:: with SMTP id b1mr11422046edy.1.1617887664775; Thu, 08 Apr 2021 06:14:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617887664; cv=none; d=google.com; s=arc-20160816; b=nFmF8Avgo8YyK/2/I8eno61IlWTtaC2ImCIiqUxsrUGtYMZLJRZ30VV+/fbky6c6R0 qR2rn0coAmp6xeya8rB97NAzLbILa7VKXzQ5Idl5xMeZYPZv3a4NvsUjCWhuWNG8S3qP 1eBjp7R1Vm6yieXhCeXNzXIu9Jh+dGPS+mQbeQYv6Sk2i0j6Vszd62Qz8b0p2oH2nori Cm4y29bux1zxi5jDGtZsxtFvE++UD//61MgnY372gUgh9J3Worc4+lueuAKjxPk0fshv 7hSqP3MxJMz47O958n1nCueETsmhoFxwWPwOZv62TdhnUupp3PVd4JgNCjtUKmTJUVsm j7aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=oVKUgrzw6IUSPTD3Nf8cOnHhvIuymOy1mMb/MWSC5Z4=; b=gXpT9RaCsgQGy7gfK/ZOb1Tbr6bVydFdQ4zyYjI/O9XWwFm9u1LNQXip8nI5a3dnZa e4E4fJFU1Iu7EuTiU5okmgFG6DbXSMnN4bj3EHPlz7zJQMm81ALCixcCQ2DaLAW1Nmuh zDp5JtTYyU4vVHnV+NZ3MGcXj6e0gJZJmPhCL+g85ZKlU/ZxfehiDbdXLy8Kn5utr2V3 4Yon/C2Mls8eetaEyFOHw8fRm6rNePg4FRf2xhYBIL1N3YFGGlkv2XsnhOd3nphjQozC 41YjcV6RUpqv6qpdIeXTJC+xj7JRV8E0jzNg2LAPog3yZxAIT7oV+OhMXAGjYgGvqhSX OTIQ== 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=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kl9si21916930ejc.271.2021.04.08.06.14.01; Thu, 08 Apr 2021 06:14:24 -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; 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=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231537AbhDHNMv (ORCPT + 99 others); Thu, 8 Apr 2021 09:12:51 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:16098 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231474AbhDHNMu (ORCPT ); Thu, 8 Apr 2021 09:12:50 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FGM7j4Pfsz19L9X; Thu, 8 Apr 2021 21:10:25 +0800 (CST) Received: from huawei.com (10.175.104.57) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Thu, 8 Apr 2021 21:12:30 +0800 From: Peng Wu To: , , , CC: , , Peng Wu Subject: [PATCH -next] sched/topology: Make some symbols static Date: Thu, 8 Apr 2021 21:12:17 +0800 Message-ID: <1617887537-38438-1-git-send-email-wupeng58@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.175.104.57] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) {