Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1097600pxf; Thu, 8 Apr 2021 23:09:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzp/OxEfHnlbXdnYqDS7/qMeV2VbyliomqreNTqQ4E0BuF0bx8BB9HmmaO8n1ysOzf4FPWq X-Received: by 2002:a65:6704:: with SMTP id u4mr11366676pgf.169.1617948547103; Thu, 08 Apr 2021 23:09:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617948547; cv=none; d=google.com; s=arc-20160816; b=OOs1huWM3IZxv3LS288hOVX2Xvw7gu7muEB6W4KryCzVgXcYKnk2F1R3tJphm5sXMn BGmA8c/S7pA2+fK06iq5MIWsQehttaonOTCf4AXgrm9dJBgwPjYd66zMzhgOgHZ5aoVm dxqqz4UTEIsCHWVb5z2IKsCXijiS9iWtJ3RnKXZsU9KKFu9FZS31Jvo0/JsncSRe30/M wV2ATAMUzxJoTcpwx0fPexlgoKu7/u1YwhX6xWod5FJbrRNynv8Xh1XoUKwJ0gd8XQxj DCpxMj02R1FFD0v8uXxCk6yp8kLiu5HNYggFyTEUp3yvtQRe1vI2Zr9GSAYGvXRRaDNJ l14Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=YKwXD8N1JHHBcf4wI9nAzA8eJamXKsw4F6yNcr3o4hA=; b=nsTyjmYiVOdjH/wTEL4w00xOf5rArpVbZn58eGQqnJro4c1Z/FHhzdVbTJop36nzDm NlVCHZcAXXsmKkUa47CwXp2sKpdL7+K3vQMwFPCOMFErVuDuNf16HP4hOndnDq79Lvgq aW1Db09z61PK1GxOeyavUJAp8yLQV1ufhWKHo3sHQ5C0MOVO61bctEi0mHAibik81wf4 WFEC+xZBQ9YttCHW5tjr2zxsvY1nXMHa0TQIstZm0zADdzdYsXmlFNvWB7gFvkkoRY8X A4BUrymyf//36Gw0aGHNYnn5areD0pB0muzurb/0tz+P3sfYl5vjtj5myu8k/EHQn2Yr 5pxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=bVr769uT; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ionos.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 31si1788286pgs.443.2021.04.08.23.08.55; Thu, 08 Apr 2021 23:09:07 -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; dkim=pass header.i=@ionos.com header.s=google header.b=bVr769uT; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ionos.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233332AbhDIGI1 (ORCPT + 99 others); Fri, 9 Apr 2021 02:08:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233273AbhDIGI1 (ORCPT ); Fri, 9 Apr 2021 02:08:27 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C29A6C061761 for ; Thu, 8 Apr 2021 23:08:14 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id u21so6763914ejo.13 for ; Thu, 08 Apr 2021 23:08:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YKwXD8N1JHHBcf4wI9nAzA8eJamXKsw4F6yNcr3o4hA=; b=bVr769uTZK4fThAkfr8e8lrTPnJwtRsjFympwJ8co6ncLkEUZYYEQbvfhErkO2thlj 98R+1RNbKeNAmbCfGEtUcd+QGKQKmkuRMKljSMlplhpx6hDxNKQrcbFdaMvSw//uZLyD AVAcWFP74H/hggcsU+yrFYmf1vdGFtvkkfm/ezhgS8MeSmRoCwdWshvXT7GcQo+efdFl MQssEnn/CgyPwvUsKSpNSFe+LZ3GKMyfgEpKD3AMPbyDkGjpmrvkyMVGCJfzdQp++3Tz RPAaAf2c9ie3MbXkS/4DDdu+53W7AG1PBYvktPQbtdYsR6RIpStb8V3e5RNxXT7ZF5X3 Q2dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YKwXD8N1JHHBcf4wI9nAzA8eJamXKsw4F6yNcr3o4hA=; b=l+GsxjgyHFgFsWfyrLXQau9yM7LUoqj5lrFr5fvGrZ6P49bA6MuB+dPD8XJg5Ov6Y/ kI4anD/JyKzncTzbklIsknhAf5EK3wV5zgppM/SdQvz6O2EMSyUm3Bwxyi7kDdtNIvGd 7MmIy33zN2vR9zGU/d3WjrR9nQ9ZYQB7UI09xm7LEe1mz6JKlaJqEjk5A+7I71LITVrf w3Pj7vK9H7QZiwssdH4e7nhe1/FMZUsodpkw5N5CnUIf4CEvWFRbtojf4AG/Dlj9kz61 jrP1U7GhK90oSZa0ICbelsJ3+VFoI/SYZzg+jdhEFyC9G/3s5/QaA+pspFqh/2glv+T3 Tx+Q== X-Gm-Message-State: AOAM532DRUDwhsGh42Fl1JBz3NtlJ1MS2dumvqLFTh59I65htK5tMSnp tt1KW67xaowlgEpWChmGnqyLKF18LU9PdIPRwG9qnQ== X-Received: by 2002:a17:906:935a:: with SMTP id p26mr11084596ejw.521.1617948493461; Thu, 08 Apr 2021 23:08:13 -0700 (PDT) MIME-Version: 1.0 References: <1617886593-36421-1-git-send-email-luojiaxing@huawei.com> <1617886593-36421-3-git-send-email-luojiaxing@huawei.com> In-Reply-To: <1617886593-36421-3-git-send-email-luojiaxing@huawei.com> From: Jinpu Wang Date: Fri, 9 Apr 2021 08:08:02 +0200 Message-ID: Subject: Re: [PATCH v3 2/2] scsi: pm8001: clean up for open brace To: Luo Jiaxing Cc: Jinpu Wang , "James E.J. Bottomley" , "Martin K. Petersen" , Linux SCSI Mailinglist , open list , linuxarm@huawei.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 8, 2021 at 2:56 PM Luo Jiaxing wrote: > > There are few error about open brace is reported by checkpatch.pl: > > ERROR: that open brace { should be on the previous line > +static struct error_fw flash_error_table[] = > +{ > > So fix them all. > > Signed-off-by: Jianqin Xie > Signed-off-by: Luo Jiaxing looks good to me, thx! Acked-by: Jack Wang > --- > drivers/scsi/pm8001/pm8001_ctl.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/scsi/pm8001/pm8001_ctl.c b/drivers/scsi/pm8001/pm8001_ctl.c > index 90b816f..8c253b0 100644 > --- a/drivers/scsi/pm8001/pm8001_ctl.c > +++ b/drivers/scsi/pm8001/pm8001_ctl.c > @@ -645,8 +645,7 @@ struct flash_command { > int code; > }; > > -static struct flash_command flash_command_table[] = > -{ > +static const struct flash_command flash_command_table[] = { > {"set_nvmd", FLASH_CMD_SET_NVMD}, > {"update", FLASH_CMD_UPDATE}, > {"", FLASH_CMD_NONE} /* Last entry should be NULL. */ > @@ -657,8 +656,7 @@ struct error_fw { > int err_code; > }; > > -static struct error_fw flash_error_table[] = > -{ > +static const 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}, > -- > 2.7.4 >