Commit 0b1be03f authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Michael Ellerman
Browse files

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: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 46c2478a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)