Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4105398pxj; Tue, 11 May 2021 20:38:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzM9dDItQxf347yBpiHJ2LZLq9bjhqc1oTwKnta/SJu3Y7gpOPO3wiw7Pi+SYih4hDUyLsD X-Received: by 2002:a50:8a99:: with SMTP id j25mr39907042edj.253.1620790696550; Tue, 11 May 2021 20:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620790696; cv=none; d=google.com; s=arc-20160816; b=pJWWQCVPVt9s9ySn6RLK/8Ts2QT3OTImZ9U4hO4QEJl+v2+u1oD6mgNJJ7yjLb5N50 FC5qOMRgygrfOT09O2ZZrcub7XZRgicZftFARb5PiqD3EuRrjYr3ErEd5egF1bVaSQ2O JnvGMl9VQMTn4F8MPBaKNGNf8mL/fkMX6wuf/+8HVpF99kOyfg2RujgAJutYQi0qJ4x4 4Jd6lLWH5qky/vat952Km6/tKJOLs6Yauq/CiyeMAs+JBijRfNMeZkIooGNnp69HRLjQ JhiJDNUDdSnewXFoOKK3jYK8VXGs3s7RlZLQH3Gk+X20bhFr8J/5SdiSKO51TUxO0YYs FabA== 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=eEf6AJ3GCpwyrRaXM3Qsj6rNMmxYq+27oqkc8axte6W4eIiaVygU/ZtI5Cptcj7av2 23xiSRJPLlC6nE1zYK7ih6oJZvyiYd1dwx6lG8m43OUS4bdN1ucD1+DLLbfPmDw4qwdl h/aiSH3d6R2gbkl0KIXXgRAgw52RqYf5AVwecqntfCYDCbXmy0tIjS2TXoRA0YG0LVYy Y2z9JSjVIv2sInhfyhV/wPdKi4t48XN7+wQo9hHrD90nCpa6AVBWq+rP4Ck7Y8ty/bNi qt2XzZG2YK4ZoRjSEk7Cbm5P8qw3RVlk5pxhP3GIpNOeYeqwLMKoJYM/JDqBW0MTIHgw hdsQ== 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 j22si17867894edr.586.2021.05.11.20.37.49; Tue, 11 May 2021 20:38:16 -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 S230176AbhELDis (ORCPT + 99 others); Tue, 11 May 2021 23:38:48 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:2490 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbhELDir (ORCPT ); Tue, 11 May 2021 23:38:47 -0400 Received: from dggeml757-chm.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Fg0mG3618zYdq8; Wed, 12 May 2021 11:35:10 +0800 (CST) Received: from dggemi760-chm.china.huawei.com (10.1.198.146) by dggeml757-chm.china.huawei.com (10.1.199.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 12 May 2021 11:37:38 +0800 Received: from localhost.localdomain (10.67.165.24) by dggemi760-chm.china.huawei.com (10.1.198.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 12 May 2021 11:37:38 +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 11:34:25 +0800 Message-ID: <1620790471-16621-3-git-send-email-tanghui20@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1620790471-16621-1-git-send-email-tanghui20@huawei.com> References: <1620790471-16621-1-git-send-email-tanghui20@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggemi760-chm.china.huawei.com (10.1.198.146) 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