From: Geert Uytterhoeven Date: Mon, 17 Jun 2019 09:07:13 +0000 (+0200) Subject: powerpc/ps3: Use [] to denote a flexible array member X-Git-Tag: v5.3-rc1~94^2~143 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=0b1be03f25bb4c92de6408da4de9361f4cb50ae3;p=linux-2.6-block.git powerpc/ps3: Use [] to denote a flexible array member Flexible array members should be denoted using [] instead of [0], else gcc will not warn when they are no longer at the end of the structure. Signed-off-by: Geert Uytterhoeven Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/include/asm/ps3stor.h b/arch/powerpc/include/asm/ps3stor.h index 6fcaf714fa50..d5767ba0670b 100644 --- a/arch/powerpc/include/asm/ps3stor.h +++ b/arch/powerpc/include/asm/ps3stor.h @@ -51,7 +51,7 @@ struct ps3_storage_device { unsigned int num_regions; unsigned long accessible_regions; unsigned int region_idx; /* first accessible region */ - struct ps3_storage_region regions[0]; /* Must be last */ + struct ps3_storage_region regions[]; /* Must be last */ }; static inline struct ps3_storage_device *to_ps3_storage_device(struct device *dev)