Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Geert Uytterhoeven and committed by
Michael Ellerman
0b1be03f 46c2478a

+1 -1
+1 -1
arch/powerpc/include/asm/ps3stor.h
··· 51 51 unsigned int num_regions; 52 52 unsigned long accessible_regions; 53 53 unsigned int region_idx; /* first accessible region */ 54 - struct ps3_storage_region regions[0]; /* Must be last */ 54 + struct ps3_storage_region regions[]; /* Must be last */ 55 55 }; 56 56 57 57 static inline struct ps3_storage_device *to_ps3_storage_device(struct device *dev)