Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp878420pxf; Wed, 7 Apr 2021 13:59:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8EGYf7xVZLhbI+9gBucsTZAuaUaP0bF6TjMIYKbAioU3sDlmnVkkZgachL2rikABf9II+ X-Received: by 2002:a17:907:921:: with SMTP id au1mr5854561ejc.386.1617829147424; Wed, 07 Apr 2021 13:59:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617829147; cv=none; d=google.com; s=arc-20160816; b=KV35YNsH9RAzQkBJI93D97FWxGtmoaVIcP9a4AoCwWn9qJOM5KS6Jld1AXiFt3N5TQ 3B5j6sxQbYmLBzJVMTWbbH6I/XMhGsSDW1Xks5kB7BCnPI7WIgeAyxbGbOn8MhuL/J/R 2Y2f9T5UESrP1it3+mEE+MDLTkUD/MWNrwYqxF9v+SmaE0rBQexmF43RyMJVT8kktoPS D1jcQbggDVRBVpQbtB/DGasyvcR3Q/ndukHy3+cDiMT4cSkt8fc5dEcfkHDLDHKfXbSn OkaHtUxhFtDywynCU91wXj8eOLG+nxtK9V6XxqPYS+bSGzUIWW1W7778tbRYZ7yIreG4 LfTQ== 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=ntrozWmiPcXV44eN0F/5R0aEi0ZiFa+n3WQ5/u/9gxk=; b=0sESyBJMJG1xFtUUVbd9D5ExoX/5yLr02v2Zk57MT3TceNVCyjAK9vYPHaNuNp6ZvN eWgbXBZZcMjLm/mE+eOM15LQjdqx/Wb85p3h4z42yAjHAktz0ChmTEQyZsEq4uPhBHCL /LUPSbcCNeCWIby8xQdFjjgF5zaw8Jd1/VAtkKTS0UnH0tNHmhTHmTjvYxCwXYcN9Uht d0GNsBxGDJh49gtd46p1xMTZ2hQ2gMStCxQlBJx36fU6PFLyVYj3b67PS7NvnASYYTko 8Ukw92ISovfGEUEXbiz6B/3MVEsoyQj4NEhazTKD9DIulAZaQSYQbYb6eaihYB51fu7y jQmg== 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 x19si11639192ejo.698.2021.04.07.13.58.42; Wed, 07 Apr 2021 13:59:07 -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 S1352438AbhDGMu6 (ORCPT + 99 others); Wed, 7 Apr 2021 08:50:58 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:16062 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352426AbhDGMuz (ORCPT ); Wed, 7 Apr 2021 08:50:55 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FFkhx59Rnz16J2r; Wed, 7 Apr 2021 20:48:33 +0800 (CST) Received: from huawei.com (10.175.127.227) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.498.0; Wed, 7 Apr 2021 20:50:38 +0800 From: Yu Kuai To: CC: , , , , Subject: [PATCH] powerpc/smp: Make some symbols static Date: Wed, 7 Apr 2021 20:59:03 +0800 Message-ID: <20210407125903.4139663-1-yukuai3@huawei.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The sparse tool complains as follows: arch/powerpc/kernel/smp.c:86:1: warning: symbol '__pcpu_scope_cpu_coregroup_map' was not declared. Should it be static? arch/powerpc/kernel/smp.c:125:1: warning: symbol '__pcpu_scope_thread_group_l1_cache_map' was not declared. Should it be static? arch/powerpc/kernel/smp.c:132:1: warning: symbol '__pcpu_scope_thread_group_l2_cache_map' was not declared. Should it be static? These symbols are not used outside of smp.c, so this commit marks them static. Reported-by: Hulk Robot Signed-off-by: Yu Kuai --- arch/powerpc/kernel/smp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index 5a4d59a1070d..63ccc70bdd0d 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -83,7 +83,7 @@ DEFINE_PER_CPU(cpumask_var_t, cpu_sibling_map); DEFINE_PER_CPU(cpumask_var_t, cpu_smallcore_map); DEFINE_PER_CPU(cpumask_var_t, cpu_l2_cache_map); DEFINE_PER_CPU(cpumask_var_t, cpu_core_map); -DEFINE_PER_CPU(cpumask_var_t, cpu_coregroup_map); +static DEFINE_PER_CPU(cpumask_var_t, cpu_coregroup_map); EXPORT_PER_CPU_SYMBOL(cpu_sibling_map); EXPORT_PER_CPU_SYMBOL(cpu_l2_cache_map); @@ -122,14 +122,14 @@ static struct thread_groups_list tgl[NR_CPUS] __initdata; * On big-cores system, thread_group_l1_cache_map for each CPU corresponds to * the set its siblings that share the L1-cache. */ -DEFINE_PER_CPU(cpumask_var_t, thread_group_l1_cache_map); +static DEFINE_PER_CPU(cpumask_var_t, thread_group_l1_cache_map); /* * On some big-cores system, thread_group_l2_cache_map for each CPU * corresponds to the set its siblings within the core that share the * L2-cache. */ -DEFINE_PER_CPU(cpumask_var_t, thread_group_l2_cache_map); +static DEFINE_PER_CPU(cpumask_var_t, thread_group_l2_cache_map); /* SMP operations for this machine */ struct smp_ops_t *smp_ops; -- 2.25.4