Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1183912pxf; Fri, 9 Apr 2021 02:03:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVCtITdyhe0J3NjXfWby44i9B8aFmDkvcbBEE6yZf8GRfqsdTILs669YBiDT6lA9C1k1Tw X-Received: by 2002:a17:90a:156:: with SMTP id z22mr13524091pje.181.1617959013671; Fri, 09 Apr 2021 02:03:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617959013; cv=none; d=google.com; s=arc-20160816; b=IpYsxEnJpI24je/AK9WjzVykIpV5CdOP6tj03BbL3TpHo/iwT6R5AASqpwaNgQQcqc ajKvpfI5BnM4+qSue5pedaT8MWd+n+rDQ6IDtZqFngQHX3uklHHOQDRGvM05F0oMJ6wo qHzLxhmMswlUp3zDfUcymJxwU73thoXUpfsbb86rLnZJBNRRDabtNytal7Km1MHecCcv xGHqoenLnwSer/2ZwCNHv8F+NHxGbBqGNeh9kKaxp5hrpejFUjjm4eT21PNIx9UD9rjn 7nDhwjNgjLyL5Fyf2zHbcnMw5vsDIqtjcBzQCY2uVwS5wlOqFDPBy4JH7TKpW1c5GCNy 218w== 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=U/ev1ax6I+Zc1KLYv1Ffhve6MqzidIEcR4hXucI65vc=; b=mE7lBxLVSy2EfY7H/H/lMYDhhzcVAwhWBNjeUzoESFrF7LNYjKM3Fp624/pvXB7uxy y9sIDC2WPGJxKdcpgGvhRTh8bIkKjqKnaFrEU0DsLZF8quduba7LFMcvgCVGsg0PaT0C o+Mivqnwd2ST+Rjh1DuW38NKpdNGQMHtdKbRxRH2U86jG2mG4JrAsrwLOA/3XBgD1pX2 uQUaz8EOrAmKlR2TYSpWmmzO++ARltIBAEnHgIwzgS5fQxu2gT7GYmOCIa9lhtEAZo/W CsJX9n8o6D+1jsV647dsi9XpTQMUbdJWWsGDCtMPTBkdlRgG3DDHVBT2TmB/jfVMKUZ9 I7yQ== 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 f14si2290825pjh.172.2021.04.09.02.03.21; Fri, 09 Apr 2021 02:03:33 -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 S232615AbhDIJC1 (ORCPT + 99 others); Fri, 9 Apr 2021 05:02:27 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:16500 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232327AbhDIJCX (ORCPT ); Fri, 9 Apr 2021 05:02:23 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FGsWY5hzHzPpQ3; Fri, 9 Apr 2021 16:59:21 +0800 (CST) Received: from huawei.com (10.174.28.241) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.498.0; Fri, 9 Apr 2021 17:02:03 +0800 From: Bixuan Cui To: , Michael Ellerman , Kajol Jain , "Gautham R. Shenoy" , "Madhavan Srinivasan" CC: , , Subject: [PATCH -next] powerpc/perf/hv-24x7: Make some symbols static Date: Fri, 9 Apr 2021 17:01:24 +0800 Message-ID: <20210409090124.59492-1-cuibixuan@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.28.241] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The sparse tool complains as follows: arch/powerpc/perf/hv-24x7.c:229:1: warning: symbol '__pcpu_scope_hv_24x7_txn_flags' was not declared. Should it be static? arch/powerpc/perf/hv-24x7.c:230:1: warning: symbol '__pcpu_scope_hv_24x7_txn_err' was not declared. Should it be static? arch/powerpc/perf/hv-24x7.c:236:1: warning: symbol '__pcpu_scope_hv_24x7_hw' was not declared. Should it be static? arch/powerpc/perf/hv-24x7.c:244:1: warning: symbol '__pcpu_scope_hv_24x7_reqb' was not declared. Should it be static? arch/powerpc/perf/hv-24x7.c:245:1: warning: symbol '__pcpu_scope_hv_24x7_resb' was not declared. Should it be static? This symbol is not used outside of hv-24x7.c, so this commit marks it static. Reported-by: Hulk Robot Signed-off-by: Bixuan Cui --- arch/powerpc/perf/hv-24x7.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/perf/hv-24x7.c b/arch/powerpc/perf/hv-24x7.c index e5eb33255066..1816f560a465 100644 --- a/arch/powerpc/perf/hv-24x7.c +++ b/arch/powerpc/perf/hv-24x7.c @@ -226,14 +226,14 @@ static struct attribute_group event_long_desc_group = { static struct kmem_cache *hv_page_cache; -DEFINE_PER_CPU(int, hv_24x7_txn_flags); -DEFINE_PER_CPU(int, hv_24x7_txn_err); +static DEFINE_PER_CPU(int, hv_24x7_txn_flags); +static DEFINE_PER_CPU(int, hv_24x7_txn_err); struct hv_24x7_hw { struct perf_event *events[255]; }; -DEFINE_PER_CPU(struct hv_24x7_hw, hv_24x7_hw); +static DEFINE_PER_CPU(struct hv_24x7_hw, hv_24x7_hw); /* * request_buffer and result_buffer are not required to be 4k aligned, @@ -241,8 +241,8 @@ DEFINE_PER_CPU(struct hv_24x7_hw, hv_24x7_hw); * the simplest way to ensure that. */ #define H24x7_DATA_BUFFER_SIZE 4096 -DEFINE_PER_CPU(char, hv_24x7_reqb[H24x7_DATA_BUFFER_SIZE]) __aligned(4096); -DEFINE_PER_CPU(char, hv_24x7_resb[H24x7_DATA_BUFFER_SIZE]) __aligned(4096); +static DEFINE_PER_CPU(char, hv_24x7_reqb[H24x7_DATA_BUFFER_SIZE]) __aligned(4096); +static DEFINE_PER_CPU(char, hv_24x7_resb[H24x7_DATA_BUFFER_SIZE]) __aligned(4096); static unsigned int max_num_requests(int interface_version) {