Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4151508pxf; Tue, 6 Apr 2021 09:05:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVBrjjIMv9KWdEFk8lkHD/jb4eHvYe+mgiWfkCap/HZPuZn26u1i3d+NWP0GnceOip3wvS X-Received: by 2002:a05:6402:1350:: with SMTP id y16mr38518933edw.309.1617725129316; Tue, 06 Apr 2021 09:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617725129; cv=none; d=google.com; s=arc-20160816; b=a/lSihmIee7O564Ra+C0qcTgruby1QWQ9l/TwNEjOwjGKuTIkF6pEHb7+/pkvnd9Rf ezi6OFFfmBdX3H+leNBY2NojiklIQ/QMPxNE2Ol88Ld6ZIx2n/7ZlFYZQ8impLOsCHhU dCOCNtd+hV3VrXyutOecWX1LA/9zqIjlz1i0cAqS0kE5DIKLpzDTZTLgG6zi86amWCQd L8VWU1v9PqjqEatdsn0FluN/GdMDO7NosuInLB9RJlGAsMo/YO9gDQG6xYMl+2BpXC6F tPGgj+14BEYnspwJ53zf51aBXSQaN/UL82P1k3x0ItysSlrVAaipI5He5i/o3OKYRIUV Wozg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=ifTMKqksUou0fwujz4MvYoVvaGJNEBr/wbllUUCInS8=; b=pedRrqCQOBYdQ/EgSRNfY0baon2tZu9OlqXLvkX7Ea4wj/PNuT1r+ihdDJ33fqHE+d SaLJnxga0S0A72g7CjA7iX6Hytn2aBkCx8cJer6Q4UruDJ/zrjDCxo/HU+d+XVXb4Vao 1kVt2IRiLx7/VXLRh1ymTC+Dgr4v7Yr4akWfLuhoMZBQUBGCYvXwDPdWFrZsTL44/m1W BGuNe8Jxg9+Pe6a7ITg6zLzSkp6g1vESdfjzbYg7eUYdHKu/8DGrghao6MGnjRTRzl1S L6QLu3qIrjznLETFT63oPIYOF0RExA9RYryaWNHpLQ6hbRH2UwKsYVp4dhzC8ZpadR2+ oDkA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 gt26si8471454ejb.589.2021.04.06.09.04.58; Tue, 06 Apr 2021 09:05:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S236133AbhDFGkS (ORCPT + 99 others); Tue, 6 Apr 2021 02:40:18 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:15604 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232385AbhDFGkR (ORCPT ); Tue, 6 Apr 2021 02:40:17 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FDyWp00zzz19KLD; Tue, 6 Apr 2021 14:37:57 +0800 (CST) Received: from [127.0.0.1] (10.40.192.131) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.498.0; Tue, 6 Apr 2021 14:40:01 +0800 Subject: Re: [PATCH v1 2/2] scsi: pm8001: clean up for open brace To: Bart Van Assche , , , CC: , , References: <1617354522-17113-1-git-send-email-luojiaxing@huawei.com> <1617354522-17113-3-git-send-email-luojiaxing@huawei.com> <614f4c0f-deaa-ad3a-09d1-ac6e8ec2d143@acm.org> From: luojiaxing Message-ID: <400a9958-dffc-7e09-6bbb-33666c991415@huawei.com> Date: Tue, 6 Apr 2021 14:40:01 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <614f4c0f-deaa-ad3a-09d1-ac6e8ec2d143@acm.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.40.192.131] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/4/3 0:03, Bart Van Assche wrote: > On 4/2/21 2:08 AM, Luo Jiaxing wrote: >> -static struct flash_command flash_command_table[] = >> -{ >> +static struct flash_command flash_command_table[] = { >> {"set_nvmd", FLASH_CMD_SET_NVMD}, >> {"update", FLASH_CMD_UPDATE}, >> {"", FLASH_CMD_NONE} /* Last entry should be NULL. */ > Can 'flash_command_table' be declared const? Sure > >> -static struct error_fw flash_error_table[] = >> -{ >> +static struct error_fw flash_error_table[] = { >> {"Failed to open fw image file", FAIL_OPEN_BIOS_FILE}, >> {"image header mismatch", FLASH_UPDATE_HDR_ERR}, >> {"image offset mismatch", FLASH_UPDATE_OFFSET_ERR}, > Can 'flash_error_table' be declared const? Sure Thanks Jiaxing > > Thanks, > > Bart. > > . >