Skip to content

Commit

Permalink
ps3_gelic: Use [] to denote a flexible array member
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geert Uytterhoeven authored and David S. Miller committed Jun 18, 2019
1 parent 75345f8 commit b594850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/toshiba/ps3_gelic_net.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b594850

Please sign in to comment.