diff options
author | Zou Wei <zou_wei@huawei.com> | 2021-03-23 16:11:37 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-03-28 20:13:39 +0300 |
commit | 5c8a620ab22b05eae7e480cb83ff599047b8aff4 (patch) | |
tree | d4ed96dd58bc36c4afe7718c0c2b0509d9ae128d | |
parent | 33cebf701e98dd12b01d39d1c644387b27c1a627 (diff) | |
download | linux-5c8a620ab22b05eae7e480cb83ff599047b8aff4.tar.xz |
mtd: rawnand: rockchip: Use flexible-array member instead of zero-length array
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 <zou_wei@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210323131137.45552-1-zou_wei@huawei.com
-rw-r--r-- | drivers/mtd/nand/raw/rockchip-nand-controller.c | 2 |
1 files changed, 1 insertions, 1 deletions
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. */ }; |