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 <geert+renesas@glider.be>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
Geert Uytterhoeven 2019-06-17 11:07:13 +02:00 committed by Michael Ellerman
parent 46c2478af6
commit 0b1be03f25
1 changed files with 1 additions and 1 deletions

View File

@ -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)