diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2017-04-21 11:15:57 -0700 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2017-04-22 20:26:42 +0300 |
commit | 8bf3198a5e394ed6815aeb8fedaf49722986bbd3 (patch) | |
tree | b13037b3eacdf78b7fac1ddbb44d4c12a7ba682c /drivers/net/ethernet/mellanox/mlx5 | |
parent | a7082ef066f022c9bdeaae8d23ec2c119fecf7d9 (diff) | |
download | op-kernel-dev-8bf3198a5e394ed6815aeb8fedaf49722986bbd3.zip op-kernel-dev-8bf3198a5e394ed6815aeb8fedaf49722986bbd3.tar.gz |
mlx5: fix warning about missing prototype
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_tx.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c index 4330824..ae66fad 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c @@ -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) { diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c index dda7db5..ab3bb02 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c @@ -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 +\ |