Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2130512pxj; Thu, 20 May 2021 00:22:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRa9i2J8zlbC/YNG1gPgPd46jEziPGK6lEZXImpSUitseKKEZ8DsrdGkiKiG0dw2Op5Y+9 X-Received: by 2002:a50:eb89:: with SMTP id y9mr3496684edr.257.1621495355989; Thu, 20 May 2021 00:22:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621495355; cv=none; d=google.com; s=arc-20160816; b=ZCwyJukrHU2P/nqYtsVmoiWRhCqBxjg9P8xbAM68FKa4mBuc8vBjAV6viIOXW390+l ik6RXIOqvcYdxVbgq6w/gGsjhGs6vr+lGCxg/qwyKbrRvcbXvbxtmCFeERRstyyTXqvG 7K/K+i3T9YhzSoaHP9qBiHpR+LiwneI9IEIh23+8MXYX0Q+g2XWj+osemK7V/a+QRQAP fwuEWEo+EsmCkGjtX0zyTkrgvQ3bd/5WKNA/aP0ndj6+kE4DzH2yQivH9AfC5qK0vydv 5bxIWvG4ZbNEo4Nwa1EDY/AVMocgQV6mAnTy9wiyhVoovjMhkvp+g1BpVaWHky0T1tb4 fJaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=mgs50q7PiMwmUMVPOohJRnwqZrDyRKVigXa3KWEH4vw=; b=MDlA+6tz2YD9iRjBo63Xjb7a3EshTTpgVbXENcmHAZ2kDzx8z9z49CWN5cKeS3CCfg 3X9GWHpVTLk4sGtTQr2ZbaNY29DmWnApBPralNUX1FNSHAXu2a+DTzN1O168HMbwb383 ROwmj3yThQIMszpvYQVBo/0w6VkSmmz2s2+AetGzlKGtX1enVDih4sIkc6AxFGB4N1LK QEGIOp2PtaZNLhzp1njumrzppU8LeqsS4p6OGVh+UqCzWBs2n+vUngQ/eshompggSui4 lVivNzJlHWu0O27JqP6K5tfNu9GSQPWVzdd9xWPWW2YraTgrmA2G0u3QcBk+Xp4pTyyx E6iQ== 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 g21si1245001edb.315.2021.05.20.00.22.12; Thu, 20 May 2021 00:22:35 -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 S230488AbhETHUl (ORCPT + 99 others); Thu, 20 May 2021 03:20:41 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:3441 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230484AbhETHUk (ORCPT ); Thu, 20 May 2021 03:20:40 -0400 Received: from dggems703-chm.china.huawei.com (unknown [172.30.72.59]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4Fm1Hz3rdqzCrbC; Thu, 20 May 2021 15:16:31 +0800 (CST) Received: from dggpemm500004.china.huawei.com (7.185.36.219) by dggems703-chm.china.huawei.com (10.3.19.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 20 May 2021 15:19:18 +0800 Received: from huawei.com (10.174.28.241) by dggpemm500004.china.huawei.com (7.185.36.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 20 May 2021 15:19:18 +0800 From: Bixuan Cui To: , CC: , , , , , , Subject: [PATCH -next 2/3] iommu/arm-smmu-v3: Change *array into *const array Date: Thu, 20 May 2021 16:42:19 +0800 Message-ID: <20210520084220.51684-3-cuibixuan@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210520084220.51684-1-cuibixuan@huawei.com> References: <20210520084220.51684-1-cuibixuan@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.28.241] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500004.china.huawei.com (7.185.36.219) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix checkpatch warning in arm-smmu-v3.c: static const char * array should probably be static const char * const Signed-off-by: Bixuan Cui --- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c index 4f184119c26d..51ce44fe550c 100644 --- a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c +++ b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c @@ -354,7 +354,7 @@ static void arm_smmu_cmdq_build_sync_cmd(u64 *cmd, struct arm_smmu_device *smmu, static void arm_smmu_cmdq_skip_err(struct arm_smmu_device *smmu) { - static const char *cerror_str[] = { + static const char * const cerror_str[] = { [CMDQ_ERR_CERROR_NONE_IDX] = "No error", [CMDQ_ERR_CERROR_ILL_IDX] = "Illegal command", [CMDQ_ERR_CERROR_ABT_IDX] = "Abort on command fetch", -- 2.17.1