iommu/arm-smmu-v3: Change *array into *const array
authorBixuan Cui <cuibixuan@huawei.com>
Thu, 20 May 2021 08:42:19 +0000 (16:42 +0800)
committerWill Deacon <will@kernel.org>
Tue, 8 Jun 2021 10:03:24 +0000 (11:03 +0100)
Fix checkpatch warning in arm-smmu-v3.c:
static const char * array should probably be static const char * const

Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c

index 54b2f27..70afe1d 100644 (file)
@@ -352,7 +352,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",