Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2410294pxj; Mon, 10 May 2021 02:10:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyt0r2t/xVX2xaQI1sDXSXKauY9Dw2kUC0aJBb+s2kbwAMmnrJbRN801MdaCQPkbJfO7f9q X-Received: by 2002:a92:d5cd:: with SMTP id d13mr20247749ilq.133.1620637830071; Mon, 10 May 2021 02:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620637830; cv=none; d=google.com; s=arc-20160816; b=Ocwomo7HZrksFQQbv1cjPXeBCFh58tXlQvhqflcNbisX2BjoLC3Bl6LWPjQFOHvrSD 6olyonbR2/lFxilx0TttKfqKuZ3c0kfHCKZjmk4IOH7aYvbM60aetm4AkZ237m1ac7Wu d6Fbo0aFsYq/Q3G/hgZHrYYiMmAV1ZU1gVyCzWjJKgtdcTetR/tX9ZXNQjk5oV4ih8Sp BjmbiDmdClQolXDL8466Bv6XWKioZ9tXIkYZtGfCpE3dgUWLkoXZy4qFLjmo6JX3RHId MCQb5eHjQXAh9wa6oMSn/GEH2AeXcOytCHk/6ezfTpAMTcenYiOJr0RZp6OYLG1xhQ+8 f0fw== 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=IkQ6isuKqDgJwZTBt47wM/Cmet1CVz6NFb/EazCzHIw=; b=LCwXBNqwhvkBU8gAFvsBBIMGBNd72uDnZNEhrC4ZWPuF/9CvMrh4SynobnaL9/IBWo 5lDy6pca0kOn6H8l+JGuMF7o60XNskQoHuz5Fy8czGrAb1buXa5tGPD/2E58PlWrEkQO jTtKKhuNS1iK/qVkuMhfknG8Hli2pR5DOuwyylAwrLWxlVLJt0Fi83H4mlwI1/CM3Pbf efGtRBXVCceOVEBtLy0CFa+RjQep2IeCwC0izedJ8uYM/pEBEpQiUWy9l6+J+oqodXRk tR1rxaTk5IV+IRvYMGblnBcHxI0Lu+BRVTvvi/i92ffLNIjMyqkr/MDfaWWRndYptcTY PGKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 u10si15521832iln.13.2021.05.10.02.10.17; Mon, 10 May 2021 02:10:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 S230252AbhEJJLF (ORCPT + 99 others); Mon, 10 May 2021 05:11:05 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2748 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230213AbhEJJLC (ORCPT ); Mon, 10 May 2021 05:11:02 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FdwCZ5N2LzqV1T; Mon, 10 May 2021 17:06:34 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.498.0; Mon, 10 May 2021 17:09:46 +0800 From: Hui Tang To: , CC: , , , Subject: [PATCH 2/8] crypto: hisilicon/hpre - init a structure member each line Date: Mon, 10 May 2021 17:06:45 +0800 Message-ID: <1620637611-41643-3-git-send-email-tanghui20@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1620637611-41643-1-git-send-email-tanghui20@huawei.com> References: <1620637611-41643-1-git-send-email-tanghui20@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Only init a structure member each line, just to keep the code neat. Signed-off-by: Hui Tang --- drivers/crypto/hisilicon/hpre/hpre_main.c | 56 +++++++++++++++++++++++-------- 1 file changed, 42 insertions(+), 14 deletions(-) diff --git a/drivers/crypto/hisilicon/hpre/hpre_main.c b/drivers/crypto/hisilicon/hpre/hpre_main.c index c914e00..47a169c 100644 --- a/drivers/crypto/hisilicon/hpre/hpre_main.c +++ b/drivers/crypto/hisilicon/hpre/hpre_main.c @@ -122,21 +122,49 @@ static const char * const hpre_debug_file_name[] = { }; static const struct hpre_hw_error hpre_hw_errors[] = { - { .int_msk = BIT(0), .msg = "core_ecc_1bit_err_int_set" }, - { .int_msk = BIT(1), .msg = "core_ecc_2bit_err_int_set" }, - { .int_msk = BIT(2), .msg = "dat_wb_poison_int_set" }, - { .int_msk = BIT(3), .msg = "dat_rd_poison_int_set" }, - { .int_msk = BIT(4), .msg = "bd_rd_poison_int_set" }, - { .int_msk = BIT(5), .msg = "ooo_ecc_2bit_err_int_set" }, - { .int_msk = BIT(6), .msg = "cluster1_shb_timeout_int_set" }, - { .int_msk = BIT(7), .msg = "cluster2_shb_timeout_int_set" }, - { .int_msk = BIT(8), .msg = "cluster3_shb_timeout_int_set" }, - { .int_msk = BIT(9), .msg = "cluster4_shb_timeout_int_set" }, - { .int_msk = GENMASK(15, 10), .msg = "ooo_rdrsp_err_int_set" }, - { .int_msk = GENMASK(21, 16), .msg = "ooo_wrrsp_err_int_set" }, - { .int_msk = BIT(22), .msg = "pt_rng_timeout_int_set"}, - { .int_msk = BIT(23), .msg = "sva_fsm_timeout_int_set"}, { + .int_msk = BIT(0), + .msg = "core_ecc_1bit_err_int_set" + }, { + .int_msk = BIT(1), + .msg = "core_ecc_2bit_err_int_set" + }, { + .int_msk = BIT(2), + .msg = "dat_wb_poison_int_set" + }, { + .int_msk = BIT(3), + .msg = "dat_rd_poison_int_set" + }, { + .int_msk = BIT(4), + .msg = "bd_rd_poison_int_set" + }, { + .int_msk = BIT(5), + .msg = "ooo_ecc_2bit_err_int_set" + }, { + .int_msk = BIT(6), + .msg = "cluster1_shb_timeout_int_set" + }, { + .int_msk = BIT(7), + .msg = "cluster2_shb_timeout_int_set" + }, { + .int_msk = BIT(8), + .msg = "cluster3_shb_timeout_int_set" + }, { + .int_msk = BIT(9), + .msg = "cluster4_shb_timeout_int_set" + }, { + .int_msk = GENMASK(15, 10), + .msg = "ooo_rdrsp_err_int_set" + }, { + .int_msk = GENMASK(21, 16), + .msg = "ooo_wrrsp_err_int_set" + }, { + .int_msk = BIT(22), + .msg = "pt_rng_timeout_int_set" + }, { + .int_msk = BIT(23), + .msg = "sva_fsm_timeout_int_set" + }, { /* sentinel */ } }; -- 2.8.1