From nobody Mon Feb 9 13:05:01 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=arm.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1662125964207498.12283235126245; Fri, 2 Sep 2022 06:39:24 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.397752.638433 (Exim 4.92) (envelope-from ) id 1oU6sz-0004Ig-Kg; Fri, 02 Sep 2022 13:39:05 +0000 Received: by outflank-mailman (output) from mailman id 397752.638433; Fri, 02 Sep 2022 13:39:05 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oU6sz-0004IX-Hf; Fri, 02 Sep 2022 13:39:05 +0000 Received: by outflank-mailman (input) for mailman id 397752; Fri, 02 Sep 2022 13:39:04 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oU6rs-0000Sc-E3 for xen-devel@lists.xenproject.org; Fri, 02 Sep 2022 13:37:56 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-flk1.inumbo.com (Halon) with ESMTP id 731c0d25-2ac4-11ed-82f2-63bd783d45fa; Fri, 02 Sep 2022 15:37:55 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1C00F1516; Fri, 2 Sep 2022 06:38:01 -0700 (PDT) Received: from e109506.cambridge.arm.com (e109506.cambridge.arm.com [10.1.199.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C7F1F3F766; Fri, 2 Sep 2022 06:37:53 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 731c0d25-2ac4-11ed-82f2-63bd783d45fa From: Rahul Singh To: xen-devel@lists.xenproject.org Cc: bertrand.marquis@arm.com, rahul.singh@arm.com, Bixuan Cui , Stefano Stabellini , Julien Grall , Volodymyr Babchuk , Will Deacon Subject: [PATCH v2 07/10] xen/arm: smmuv3: Change *array into *const array Date: Fri, 2 Sep 2022 14:34:59 +0100 Message-Id: <6ea753af191d7d187ba9675374f7571a855c381a.1662123432.git.rahul.singh@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1662125965672100001 Content-Type: text/plain; charset="utf-8" From: Bixuan Cui Backport Linux commit d56d5162e317. This is the clean backport without any changes. Fix checkpatch warning in arm-smmu-v3.c: static const char * array should probably be static const char * const Signed-off-by: Bixuan Cui Signed-off-by: Will Deacon Origin: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git d5= 6d5162e317 Signed-off-by: Rahul Singh --- Changes in v2: - fix commit msg --- xen/drivers/passthrough/arm/smmu-v3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/passthrough/arm/smmu-v3.c b/xen/drivers/passthroug= h/arm/smmu-v3.c index 2b04f73b87..9bd0c211c0 100644 --- a/xen/drivers/passthrough/arm/smmu-v3.c +++ b/xen/drivers/passthrough/arm/smmu-v3.c @@ -467,7 +467,7 @@ static int arm_smmu_cmdq_build_cmd(u64 *cmd, struct arm= _smmu_cmdq_ent *ent) =20 static void arm_smmu_cmdq_skip_err(struct arm_smmu_device *smmu) { - static const char *cerror_str[] =3D { + static const char * const cerror_str[] =3D { [CMDQ_ERR_CERROR_NONE_IDX] =3D "No error", [CMDQ_ERR_CERROR_ILL_IDX] =3D "Illegal command", [CMDQ_ERR_CERROR_ABT_IDX] =3D "Abort on command fetch", --=20 2.25.1