From patchwork Mon May 9 04:32:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linu Cherian X-Patchwork-Id: 12843029 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 18342C433F5 for ; Mon, 9 May 2022 04:34:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=pZW123XH2F8AFB8kVE73N5uHaghWpLgNIIa2MXAM11c=; b=kiHAfBFG5JP5rH nNQlKsm+tsnvtRtt4Ih/sbciHT48avqYt3cGxaVBqvfPswichze0AHpk+zHiYgvAB9JuuH+NJWzma MNDUNax9o1kKqZiORXxPRc9tzGbgihNBtXixA6Nb0XQns4mWPwdJegFm+ejyzwLZsZ1Wcbch+2h1c gDn/Vq7/rGIqiTNmhqmTL3/yQWIc5gKyS8T6MS4y1ErmvU7yHySb4F1Nz2r5x3LoNm9ANOZv8Gn+P /bzqzU0qgghF3uMzcaLv8YJ86EpeqSci7bOyg9T9OLGorpStjMEbH0Ar7eTTbEpdWJTucoAT/SCQY bXWHlO2qTStINwyf8W2w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nnv4k-00CMfc-Hv; Mon, 09 May 2022 04:32:50 +0000 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nnv4h-00CMeh-IS for linux-arm-kernel@lists.infradead.org; Mon, 09 May 2022 04:32:48 +0000 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 248Nq6e9004620; Sun, 8 May 2022 21:32:30 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=rLr3fZbfrwdxpdqUmO+7CXj9h1u666zzhD5qe0O+oHw=; b=HWh81//F61cNkEG0UfKh0asgFZK/aJYN7qH9erMthRC7zPeorO2Oh85f6wHN9qnX2hXm 9/hYFfGTtryZFjQ09rmSH/ou0wNFtnZDgphD6kBpSA383yx9LnFgee3L/movHN8sVZFo nvw3cOzjtuXJ3u61f0xtowoSie1WaNSepTyJVlMayfJaYZWRI3aGofclNfFQlL6eEnIi qzZ20MhPx9UeWz3Wur8RrVcdyG8VacWhn9gQ0tAzB+UHlfCPVKbfxeDp8GiLqo4EtOEf zFAhEOSbJsQuf86Omi2DQvrY83RBomls+Ph60UvLu/fDiUMPgUCL4cwOjU4Z57tM9BTX LQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3fwy5j3mh1-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 08 May 2022 21:32:30 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sun, 8 May 2022 21:32:28 -0700 Received: from localhost.localdomain (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Sun, 8 May 2022 21:32:25 -0700 From: Linu Cherian To: , , CC: , , , Linu Cherian , "kernel test robot" Subject: [PATCH V2] arm64: Declare non global symbols as static Date: Mon, 9 May 2022 10:02:21 +0530 Message-ID: <20220509043221.16361-1-lcherian@marvell.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: VPmKMi-ejMp8eedWKaFJv5xE6Cx2Mhc- X-Proofpoint-GUID: VPmKMi-ejMp8eedWKaFJv5xE6Cx2Mhc- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-09_01,2022-05-06_01,2022-02-23_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220508_213247_772586_22288AC8 X-CRM114-Status: GOOD ( 14.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fix below sparse warnings introduced while adding errata. arch/arm64/kernel/cpu_errata.c:218:25: sparse: warning: symbol 'cavium_erratum_23154_cpus' was not declared. Should it be static? Reported-by: kernel test robot Signed-off-by: Linu Cherian Acked-by: Will Deacon --- Changes from V1: Reverted change to global symbol cavium_erratum_27456_cpus since it was used in other files. arch/arm64/kernel/cpu_errata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c index 4c9b5b4b7a0b..49f4863c6c56 100644 --- a/arch/arm64/kernel/cpu_errata.c +++ b/arch/arm64/kernel/cpu_errata.c @@ -215,7 +215,7 @@ static const struct arm64_cpu_capabilities arm64_repeat_tlbi_list[] = { #endif #ifdef CONFIG_CAVIUM_ERRATUM_23154 -const struct midr_range cavium_erratum_23154_cpus[] = { +static const struct midr_range cavium_erratum_23154_cpus[] = { MIDR_ALL_VERSIONS(MIDR_THUNDERX), MIDR_ALL_VERSIONS(MIDR_THUNDERX_81XX), MIDR_ALL_VERSIONS(MIDR_THUNDERX_83XX),