summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_stats.c
diff options
context:
space:
mode:
authorAli Alnubani <alialnu@mellanox.com>2018-11-13 19:11:06 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2018-11-15 23:54:53 +0100
commitd924d6b964d1dd4a720f61051c14507428b62e95 (patch)
tree4f0b37e1e0b9a96d936997c083a2007946bcbcde /drivers/net/mlx5/mlx5_stats.c
parentd77b9aac5dafa1592e5a102f295ba80b10138ed1 (diff)
downloaddpdk-d924d6b964d1dd4a720f61051c14507428b62e95.zip
dpdk-d924d6b964d1dd4a720f61051c14507428b62e95.tar.gz
dpdk-d924d6b964d1dd4a720f61051c14507428b62e95.tar.xz
net/mlx4: fix initialization of struct members
This patch fixes compilation errors with meson and the clang compiler caused by some of the struct members not being initialized. ``` ../drivers/net/mlx4/mlx4_mr.c:357:37: error: missing field 'end' initializer [-Werror,-Wmissing-field-initializers] struct mlx4_mr_cache entry = { 0, }; ^ ../drivers/net/mlx4/mlx4_mr.c:401:36: error: missing field 'end' initializer [-Werror,-Wmissing-field-initializers] struct mlx4_mr_cache ret = { 0, }; ^ ../drivers/net/mlx4/mlx4_mr.c:691:35: error: missing field 'end' initializer [-Werror,-Wmissing-field-initializers] struct mlx4_mr_cache ret = { 0, }; ^ ``` The compilation errors reproduce with clang version 3.4.2 (tags/RELEASE_34/dot2-final) on RHEL. Fixes: 9797bfcce1c9 ("net/mlx4: add new memory region support") Cc: stable@dpdk.org Signed-off-by: Ali Alnubani <alialnu@mellanox.com> Acked-by: Shahaf Shuler <shahafs@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_stats.c')
0 files changed, 0 insertions, 0 deletions