Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4198289pxj; Tue, 11 May 2021 23:30:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxgCbvLbe+9qvx+6Zl8ZGcZQfT86nXa5/XuyaEPpF5PX4tVoW8rml+ZePWvCAWumiZDqjs X-Received: by 2002:a05:6e02:96d:: with SMTP id q13mr16811103ilt.285.1620801050036; Tue, 11 May 2021 23:30:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620801050; cv=none; d=google.com; s=arc-20160816; b=zJlYqN0EBWicYFTkpTbmX4W+rgHb6ZPTbMOOd5QPhbhpQ8f36YIha4/qpyoVZ/nOHr Whbzppa7j1sfd8czQ4c0bUmD+oGlsMfWubZegXJnCkumCsGTSFKPRwGDSRQ+BES+xEQT eakEBAIw9HO4s0olXk/fvL8FHcbigv16EL92ZVUVEnMdAW7u5cOY7yp4qlCy+ERMVc+q vLc/88S4/AoHfSIjSR15DzAhsg45UIAuQ4L3hFy1pGN5kfYtTvI3LgJfOK8L474PkVmH hO3d7pk6Ua309KgLEVD1V1A8S8BF26/QdFIsXbTK/tB6C82DPCBiNqcx8MmJUZIBmmz+ vVEA== 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=S2Vv3UorBjQxHqLPLyCNP7SUi4Lmz4sCTOWMu97i7JtmWK3ESYfoQZON5DhpHEG5Ma pZGIzcBVZxzzjTltTOJlqJfRuqC1aVPhKwQkh6juRCaWs1ja9pBFFkgQvfUxgBnmf+uj oPqHWLb16BU0tr+6k/1PM5HOZhn98TZy4hZrww38P2WNd61NnQ+osXUIHRA/tC0349sl zoP9MmjFnYwIJ5qOrBZZnXFReGM8VlLap2YyEqjV71fnbAZxTrbEO19Tmck1P215dR4/ 7OxziTLil5TYdjkJe7RBkzfF3oFWHtyc2VnacJYoNANhbuS2oJ2Wb6+imiNAKmoqilzp G9bw== 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 k21si7334455ioh.78.2021.05.11.23.30.31; Tue, 11 May 2021 23:30:50 -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 S230176AbhELGbc (ORCPT + 99 others); Wed, 12 May 2021 02:31:32 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2789 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230135AbhELGb2 (ORCPT ); Wed, 12 May 2021 02:31:28 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Fg4ZS3HztzmgKn; Wed, 12 May 2021 14:26:56 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.498.0; Wed, 12 May 2021 14:30:09 +0800 From: Hui Tang To: , CC: , , , Subject: [PATCH v2 2/8] crypto: hisilicon/hpre - init a structure member each line Date: Wed, 12 May 2021 14:27:05 +0800 Message-ID: <1620800831-53346-3-git-send-email-tanghui20@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1620800831-53346-1-git-send-email-tanghui20@huawei.com> References: <1620800831-53346-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