net/mlx4: fixing sparse warnings for not declared, functions
PATCH 6/8 net/mlx4: fixing sparse warnings for not declared, functions
From: Yevgeny Petrilin <[email protected]>
The SET_PORT functions are implemented in port.c, which is part
of mlx4_core, these functions are exported. The functions are in use by
the mlx4_en module (were originally part of mlx4_en).
Their declaration remained in mlx4_en module, moving the declaration to the right location.
Signed-off-by Yevgeny Petrilin <[email protected]>
--- drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | 4 ---- include/linux/mlx4/device.h | 5 ++++- 2 files changed, 4 insertions(+), 5 deletions(-)
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h +0 -4
@@ -553,10 +553,6 @@ void mlx4_en_rx_irq(struct mlx4_cq *mcq);int mlx4_SET_MCAST_FLTR (struct mlx4_dev *dev,u8 port,u64 mac,u64 clear,u8 mode);int mlx4_SET_VLAN_FLTR (struct mlx4_dev *dev,struct mlx4_en_priv *priv); -int mlx4_SET_PORT_general (struct mlx4_dev *dev,u8 port,int mtu, -u8 pptx,u8 pfctx,u8 pprx,u8 pfcrx); -int mlx4_SET_PORT_qpn_calc (struct mlx4_dev *dev,u8 port,u32 base_qpn, -u8 promisc);int mlx4_en_DUMP_ETH_STATS (struct mlx4_en_dev *mdev,u8 port,u8 reset);int mlx4_en_QUERY_PORT (struct mlx4_en_dev *mdev,u8 port);
include/linux/mlx4/device.h +4 -1
@@ -622,7 +622,10 @@ int mlx4_replace_mac(struct mlx4_dev *dev, u8 port, int qpn, u64 new_mac);int mlx4_get_eth_qp (struct mlx4_dev *dev,u8 port,u64 mac,int *qpn);void mlx4_put_eth_qp (struct mlx4_dev *dev,u8 port,u64 mac,int qpn);void mlx4_set_stats_bitmap (struct mlx4_dev *dev,u64 *stats_bitmap); - +int mlx4_SET_PORT_general (struct mlx4_dev *dev,u8 port,int mtu, +u8 pptx,u8 pfctx,u8 pprx,u8 pfcrx); +int mlx4_SET_PORT_qpn_calc (struct mlx4_dev *dev,u8 port,u32 base_qpn, +u8 promisc);int mlx4_find_cached_vlan (struct mlx4_dev *dev,u8 port,u16 vid,int *idx);int mlx4_register_vlan (struct mlx4_dev *dev,u8 port,u16 vlan,int *index);void mlx4_unregister_vlan (struct mlx4_dev *dev,u8 port,int index);
Signature · 1 line
1.7.7