net/mlx4: fix missing initializers for old GCC
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Fri, 13 Oct 2017 09:31:05 +0000 (11:31 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 13 Oct 2017 10:29:14 +0000 (12:29 +0200)
commitcf2fdf726374f31d433fc322cababc00c465cbd7
treef7f3936aea72a3afd005616580fa553e7b82d3ad
parent8c49d5f1c219d986bb129c61dfa2e155d7f2b1da
net/mlx4: fix missing initializers for old GCC

This patch works around compilation issues so far only seen on RHEL 7.2
using GCC 4.8.5:

 [...]/mlx4_rxq.c: In function `mlx4_rx_queue_setup':
 [...]/mlx4_rxq.c:473:3: error: missing initializer for field `ipackets' of
     `struct mlx4_rxq_stats' [-Werror=missing-field-initializers]

 [...]/mlx4_txq.c: In function `mlx4_tx_queue_setup':
 [...]/mlx4_txq.c:265:3: error: missing initializer for field `opackets' of
     `struct mlx4_txq_stats' [-Werror=missing-field-initializers]

Fixes: 79770826499b ("net/mlx4: drop live queue reconfiguration support")

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx4/mlx4_rxq.c
drivers/net/mlx4/mlx4_txq.c