aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox
diff options
context:
space:
mode:
authorFengguang Wu <fengguang.wu@intel.com>2014-07-24 02:11:46 -0400
committerDavid S. Miller <davem@davemloft.net>2014-07-25 02:36:32 -0400
commit3f6148e76a58eceef1435b65afecaf448b509cfd (patch)
treefd264888be8518e4b8c49376d61e5fe9ebbb7e30 /drivers/net/ethernet/mellanox
parent159945af1e40db5c15766d9fe6d465d7213cc860 (diff)
net/mlx4_en: mlx4_en_[gs]et_priv_flags() can be static
Fixes sparse warning intrduced by commit 0fef9d0 ("net/mlx4_en: Disable blueflame using ethtool private flags") Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/en_ethtool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c b/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
index 50e85cc1d61f..e22f24f784fc 100644
--- a/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
+++ b/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
@@ -1221,7 +1221,7 @@ static int mlx4_en_get_ts_info(struct net_device *dev,
1221 return ret; 1221 return ret;
1222} 1222}
1223 1223
1224int mlx4_en_set_priv_flags(struct net_device *dev, u32 flags) 1224static int mlx4_en_set_priv_flags(struct net_device *dev, u32 flags)
1225{ 1225{
1226 struct mlx4_en_priv *priv = netdev_priv(dev); 1226 struct mlx4_en_priv *priv = netdev_priv(dev);
1227 bool bf_enabled_new = !!(flags & MLX4_EN_PRIV_FLAGS_BLUEFLAME); 1227 bool bf_enabled_new = !!(flags & MLX4_EN_PRIV_FLAGS_BLUEFLAME);
@@ -1256,7 +1256,7 @@ int mlx4_en_set_priv_flags(struct net_device *dev, u32 flags)
1256 return 0; 1256 return 0;
1257} 1257}
1258 1258
1259u32 mlx4_en_get_priv_flags(struct net_device *dev) 1259static u32 mlx4_en_get_priv_flags(struct net_device *dev)
1260{ 1260{
1261 struct mlx4_en_priv *priv = netdev_priv(dev); 1261 struct mlx4_en_priv *priv = netdev_priv(dev);
1262 1262