summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/toshiba
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2019-06-17 13:50:44 +0200
committerDavid S. Miller <davem@davemloft.net>2019-06-18 19:43:20 +0200
commitb594850e65b5b3a22cbc0a250940504c08ec45b1 (patch)
treeaa30164578fc7d5d657982aec21100840a557233 /drivers/net/ethernet/toshiba
parentipoib: show VF broadcast address (diff)
downloadlinux-b594850e65b5b3a22cbc0a250940504c08ec45b1.tar.xz
linux-b594850e65b5b3a22cbc0a250940504c08ec45b1.zip
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>
Diffstat (limited to 'drivers/net/ethernet/toshiba')
-rw-r--r--drivers/net/ethernet/toshiba/ps3_gelic_net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/toshiba/ps3_gelic_net.h b/drivers/net/ethernet/toshiba/ps3_gelic_net.h
index 3ecddb72f45a..051033580f0a 100644
--- a/drivers/net/ethernet/toshiba/ps3_gelic_net.h
+++ b/drivers/net/ethernet/toshiba/ps3_gelic_net.h
@@ -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 {