ps3_gelic: Use [] to denote a flexible array member
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 17 Jun 2019 11:50:44 +0000 (13:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Jun 2019 17:43:20 +0000 (10:43 -0700)
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>
drivers/net/ethernet/toshiba/ps3_gelic_net.h

index 3ecddb72f45aa80f9542c3cb5810921aa7763d6c..051033580f0a6f9ea34878cd89bea71b318ca543 100644 (file)
@@ -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 {