浏览代码

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>
Stephen Hemminger 8 年之前
父节点
当前提交
8bf3198a5e
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
  2. 1 0
      drivers/net/ethernet/mellanox/mlx5/core/en_tx.c

+ 1 - 0
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c

@@ -39,6 +39,7 @@
 #include "en.h"
 #include "en.h"
 #include "en_tc.h"
 #include "en_tc.h"
 #include "eswitch.h"
 #include "eswitch.h"
+#include "ipoib.h"
 
 
 static inline bool mlx5e_rx_hw_stamp(struct mlx5e_tstamp *tstamp)
 static inline bool mlx5e_rx_hw_stamp(struct mlx5e_tstamp *tstamp)
 {
 {

+ 1 - 0
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c

@@ -33,6 +33,7 @@
 #include <linux/tcp.h>
 #include <linux/tcp.h>
 #include <linux/if_vlan.h>
 #include <linux/if_vlan.h>
 #include "en.h"
 #include "en.h"
+#include "ipoib.h"
 
 
 #define MLX5E_SQ_NOPS_ROOM  MLX5_SEND_WQE_MAX_WQEBBS
 #define MLX5E_SQ_NOPS_ROOM  MLX5_SEND_WQE_MAX_WQEBBS
 #define MLX5E_SQ_STOP_ROOM (MLX5_SEND_WQE_MAX_WQEBBS +\
 #define MLX5E_SQ_STOP_ROOM (MLX5_SEND_WQE_MAX_WQEBBS +\