Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4201345pxf; Tue, 23 Mar 2021 05:28:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkVPivxhS7obe8nC2qnVyZXl6e3Bx/iwpv8oAVNmRV5ZPGp6pD39tJxk9YljudZCtTyNFv X-Received: by 2002:a17:906:ecaa:: with SMTP id qh10mr4665782ejb.425.1616502526753; Tue, 23 Mar 2021 05:28:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616502526; cv=none; d=google.com; s=arc-20160816; b=YKuXhwdj1AsOYqtUp6Z//I4tKyVL0lPPBWxGHOp96X7HbU3EfBUMtiNmtFtGCQZX58 AVi7UkI21kcB4iov3hL/zlge13Z69NzhJNDyG4TtJd7DzR0XUHZJFpYPdvK9stn2vwsA 7acx8BZnUlq/5LZsRP3yigOozKnSGqg4+3Un0pNP3Lux2X9GtczeVOy35LLg4uO4QBNT qv3U0zEgKrnYSC0wq9fHNeYmD6T/dCklIsoxJhaihUjQDJOk8k6+Pet7UUASN+2NuDH0 xcV0J/+6idihc832h4XXyXBSG4y234FoPxtA4eaR4vDmCp87N7pHGi2VIiytu4/2DwsT k3NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=zCgbZ5pIuKDVqgtvA7cMhQtP1p52d7k4/RgUrQKuTag=; b=e1693anYD4eFCk3X1ZhIMWjpE9PmfcFrjgY5ZKrzQvqxWvE2zyFmzO8c3ik8+5TcHO MZkg8fkze+iV36HZMrgtgIIupCZEn2nfzPbvMBHV0Ke9Hj4Drrj/27mfwvlMSkBnr0RF hoQ23E6UWcFM+4j/vcsHy0oVFVskVZxtVrzX2MYSZcIqeZlxpLQWOadCx2tfZVZdNa1S msBmQW4PE+w2nKxIcr730mdK5LtHjH+s9lpMdzYU9MjXWfYLHW4nM24Yx3WH+7YRMvAk BpRKEkh5on7kONKaEe0C4KYjJD2Wm0Z+KefJQmuFIJ00u2BfpWTdJuVGrQh9D+br8muX EndA== 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 dk14si13203259edb.548.2021.03.23.05.28.23; Tue, 23 Mar 2021 05:28:46 -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 S230355AbhCWM0U (ORCPT + 99 others); Tue, 23 Mar 2021 08:26:20 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13668 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230264AbhCWMZ6 (ORCPT ); Tue, 23 Mar 2021 08:25:58 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4F4Vrs0yXHznTsx; Tue, 23 Mar 2021 20:23:25 +0800 (CST) Received: from hulk-robot-4.huawei.com (10.175.124.27) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.498.0; Tue, 23 Mar 2021 20:25:46 +0800 From: Zou Wei To: , , , CC: , , , , , Zou Wei Subject: [PATCH -next] mtd: rawnand: rockchip: Use flexible-array member instead of zero-length array Date: Tue, 23 Mar 2021 13:11:37 +0000 Message-ID: <20210323131137.45552-1-zou_wei@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.27] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Suppresses the following coccinelle warning: drivers/mtd/nand/raw/rockchip-nand-controller.c:162:4-8: WARNING use flexible-array member instead Signed-off-by: Zou Wei --- drivers/mtd/nand/raw/rockchip-nand-controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/rockchip-nand-controller.c b/drivers/mtd/nand/raw/rockchip-nand-controller.c index 796b678cb108..b5405bc7ca3a 100644 --- a/drivers/mtd/nand/raw/rockchip-nand-controller.c +++ b/drivers/mtd/nand/raw/rockchip-nand-controller.c @@ -159,7 +159,7 @@ struct rk_nfc_nand_chip { u32 timing; u8 nsels; - u8 sels[0]; + u8 sels[]; /* Nothing after this field. */ }; -- 2.17.1