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:
parent
46c2478af6
commit
0b1be03f25
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user