]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
mlx5: fix warning about missing prototype
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 21 Apr 2017 18:15:57 +0000 (11:15 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 22 Apr 2017 17:26:42 +0000 (20:26 +0300)
Fix sparse warning about missing prototypes. The rx/tx code path
defines functions with prototypes in ipoib.h.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c

index 43308243f5191ac16a8bd5917db933a9822550f9..ae66fad98244d7b79025ac4a2ccf3c7393616746 100644 (file)
@@ -39,6 +39,7 @@
 #include "en.h"
 #include "en_tc.h"
 #include "eswitch.h"
+#include "ipoib.h"
 
 static inline bool mlx5e_rx_hw_stamp(struct mlx5e_tstamp *tstamp)
 {
index dda7db503043888b4775134be2e5bade5d251fba..ab3bb026ff9e8a92632e607d998665f1d8bf03bb 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/tcp.h>
 #include <linux/if_vlan.h>
 #include "en.h"
+#include "ipoib.h"
 
 #define MLX5E_SQ_NOPS_ROOM  MLX5_SEND_WQE_MAX_WQEBBS
 #define MLX5E_SQ_STOP_ROOM (MLX5_SEND_WQE_MAX_WQEBBS +\