Skip to content

Commit

Permalink
mtd: rawnand: rockchip: Use flexible-array member instead of zero-len…
Browse files Browse the repository at this point in the history
…gth 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
  • Loading branch information
Zou Wei authored and Miquel Raynal committed Mar 28, 2021
1 parent 33cebf7 commit 5c8a620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/rockchip-nand-controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ struct rk_nfc_nand_chip {
u32 timing;

u8 nsels;
u8 sels[0];
u8 sels[];
/* Nothing after this field. */
};

Expand Down

0 comments on commit 5c8a620

Please sign in to comment.