forked from Minki/linux
ps3_gelic: 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 a struct. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
75345f888f
commit
b594850e65
@ -301,7 +301,7 @@ struct gelic_card {
|
||||
*/
|
||||
unsigned int irq;
|
||||
struct gelic_descr *tx_top, *rx_top;
|
||||
struct gelic_descr descr[0]; /* must be the last */
|
||||
struct gelic_descr descr[]; /* must be the last */
|
||||
};
|
||||
|
||||
struct gelic_port {
|
||||
|
Loading…
Reference in New Issue
Block a user