Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3822648iob; Mon, 2 May 2022 06:35:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/v4rCJRXGlvX3TnIC9pWVACz7uzfz2/ptSU82KpZXbfmoJCJRYSmMwhnlmagOYOCDBSRR X-Received: by 2002:a17:90a:cf95:b0:1db:fc81:59f with SMTP id i21-20020a17090acf9500b001dbfc81059fmr17716961pju.115.1651498558724; Mon, 02 May 2022 06:35:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651498558; cv=none; d=google.com; s=arc-20160816; b=DiS/Ru1g+Ff1UKKVPFsngeZV2+FNexPkOFpIA8wRbtZLzjO6UYULU9ZXqqdu94l82f 9sksTMTHOz7sUFnc2OgQojAJAKLpFoUr5DHo9IjywEZzbuDhgveAVqSOEP/iMPqvO0+t JRfw0qVdeEXBeIIAhRyi2e0sI3BwTj3fkAPD6Jk7vTdV7CIBeGgUHpSmMRDZv/9RllKn jjtaR6KkvBgQShd1U7NoJeTCr1ITtSxGYiz7oH//dVzdaTdI6nx/31gWKphNa7Qsbb+6 SzV2+EajVJYRZuKu5jcNUlUH2jUQlDWsCZe5ZQX1iu7smmY8GZGyMcaaYxdTJSBbRgXu Whgw== 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:dkim-signature; bh=6GAf9YvYAPYD9vFjD4AGPiUOK9eXTeWscGIhp9T1sfw=; b=yV/vuAdj8nJGVwZwxRec8BJZVTmFB/+0bKxjNWkW40vG1cmCoet3gaK3o0sHrNWxD2 48yKh7boAT8kpObLUPqeEkk2BjjKdc7i4GjwpxMV6qzk75jylAYWNHU7JHozEJnjbQZh vrkAcZYtKVGcN8t77P91SOWmYlC5M7ZXjCYW1UZhqCkMSX5qvy84eMYClPPXoqXv4kom kNX5ZudM4MpU9Od+PPUWq7CgH25ukWmQxKkCDKOtKr+qDjM8lcD3iNzlrvei5xjE0a+I CpW/jsu5IwY1lceottHVnTP7RzR6O3b/ay1YTv+Z3gm595goMq+NzpFjVeBUd9eyNUKs 9c0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=iQ2+trPd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ha19-20020a17090af3d300b001ca6c627df7si13513124pjb.117.2022.05.02.06.35.41; Mon, 02 May 2022 06:35:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=iQ2+trPd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355332AbiD2H7d (ORCPT + 99 others); Fri, 29 Apr 2022 03:59:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355298AbiD2H7a (ORCPT ); Fri, 29 Apr 2022 03:59:30 -0400 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 772D74ECF6 for ; Fri, 29 Apr 2022 00:56:12 -0700 (PDT) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 23SN7prJ028701; Fri, 29 Apr 2022 00:55:53 -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=6GAf9YvYAPYD9vFjD4AGPiUOK9eXTeWscGIhp9T1sfw=; b=iQ2+trPdJULN+l0t53QkYp7LeOVMlosMugHwVM7WN09/YDMujFp9juTjdX5eHP6jBtF1 KoCzDx6m8lJntUWeCEGV43DoYuVQ2l3CXB/bylYsj91frEBbKaQTvEio/r0NmIvd0JrK ZTNIAQw60cMvULjlYmFprSBopoEGumUdS0ID4QocKYyEoUANo7a8xH32bsKp8e1jt6RY Lb1oCSwNv0nZmzzdt1H/30OJaj2f2WntoL+nyhcBEs9CMsf2E3MUG/DFjNZ5KxjNawwA cJVDAvsTViY3thYDunSwQINjEcUzE35E4SqAMkKqGSPxapw42GOG6FKzxSIUxCILjH70 GA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3fqpvy51vt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 29 Apr 2022 00:55:53 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Fri, 29 Apr 2022 00:55:51 -0700 Received: from localhost.localdomain (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 29 Apr 2022 00:55:49 -0700 From: Linu Cherian To: , , CC: , , , Linu Cherian , "kernel test robot" Subject: [PATCH] arm64: Declare non global symbols as static Date: Fri, 29 Apr 2022 13:25:35 +0530 Message-ID: <20220429075535.10636-1-lcherian@marvell.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: duzUATsxim0fRDiuye254iFtzuxZObTV X-Proofpoint-ORIG-GUID: duzUATsxim0fRDiuye254iFtzuxZObTV 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-04-29_05,2022-04-28_01,2022-02-23_01 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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? arch/arm64/kernel/cpu_errata.c:233:25: sparse: warning: symbol 'cavium_erratum_27456_cpus' was not declared. Should it be static? Reported-by: kernel test robot Signed-off-by: Linu Cherian --- arch/arm64/kernel/cpu_errata.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c index 4c9b5b4b7a0b..57a39cb6b489 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), @@ -230,7 +230,7 @@ const struct midr_range cavium_erratum_23154_cpus[] = { #endif #ifdef CONFIG_CAVIUM_ERRATUM_27456 -const struct midr_range cavium_erratum_27456_cpus[] = { +static const struct midr_range cavium_erratum_27456_cpus[] = { /* Cavium ThunderX, T88 pass 1.x - 2.1 */ MIDR_RANGE(MIDR_THUNDERX, 0, 0, 1, 1), /* Cavium ThunderX, T81 pass 1.0 */ -- 2.31.1