From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 924B5A0564; Fri, 12 Mar 2021 02:51:42 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 084CA4067E; Fri, 12 Mar 2021 02:51:42 +0100 (CET) Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) by mails.dpdk.org (Postfix) with ESMTP id 2F57C4014D for ; Fri, 12 Mar 2021 02:51:39 +0100 (CET) Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4DxTKC172szkXvV for ; Fri, 12 Mar 2021 09:50:07 +0800 (CST) Received: from [10.67.103.128] (10.67.103.128) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.498.0; Fri, 12 Mar 2021 09:51:33 +0800 To: Ferruh Yigit , References: <1615356985-24722-1-git-send-email-humin29@huawei.com> <1615356985-24722-5-git-send-email-humin29@huawei.com> <773749fe-6420-0729-6cf0-e8aea4c5095c@intel.com> From: "Min Hu (Connor)" Message-ID: <9b2df798-6f9b-018e-30bd-0bed86d336cd@huawei.com> Date: Fri, 12 Mar 2021 09:51:33 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <773749fe-6420-0729-6cf0-e8aea4c5095c@intel.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.103.128] X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [PATCH v2 4/9] net/hns3: adjust the format of RAS related structures X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 在 2021/3/12 2:25, Ferruh Yigit 写道: > On 3/10/2021 6:16 AM, Min Hu (Connor) wrote: >> From: Hongbo Zheng >> >> Adjust the format of hns3 RAS related structures to resolve >> the static check warnings of reviewbot_c.This patch has no >> impact on function. >> >> The correspond warnings of reviewbot_c: >> When struct and union members are initialized, each member >> is initialized on a separate line. >> >> Signed-off-by: Hongbo Zheng >> Signed-off-by: Min Hu (Connor) > > <...> > >>   static const struct hns3_hw_error ppu_mpf_abnormal_int_st1[] = { >> -    { .int_msk = 0xFFFFFFFF, >> -      .msg = "rpu_rx_pkt_ecc_mbit_err", >> -      .reset_level = HNS3_GLOBAL_RESET }, >> -    { .int_msk = 0, >> -      .msg = NULL, >> -      .reset_level = HNS3_NONE_RESET} >> +    { >> +        .int_msk = 0xFFFFFFFF, >> +        .msg = "rpu_rx_pkt_ecc_mbit_err", >> +        .reset_level = HNS3_GLOBAL_RESET >> +    }, { >> +        .int_msk = 0, >> +        .msg = NULL, >> +        .reset_level = HNS3_NONE_RESET >> +    } >>   }; > > Hi Connor, > > This looks like just a syntax change, I wonder what is mentioned > 'reviewbot_c' that generates a warning? Hi, Ferruh, the description of 'reviewbot_c' may be misleading, actually, it means "Huawei General Coding Specification". code from Our company should follow that, thanks > > .