提交 3f6148e7 编写于 作者: F Fengguang Wu 提交者: David S. Miller

net/mlx4_en: mlx4_en_[gs]et_priv_flags() can be static

Fixes sparse warning intrduced by commit 0fef9d03 ("net/mlx4_en: Disable
blueflame using ethtool private flags")
Signed-off-by: NFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: NAmir Vadai <amirv@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 159945af
...@@ -1221,7 +1221,7 @@ static int mlx4_en_get_ts_info(struct net_device *dev, ...@@ -1221,7 +1221,7 @@ static int mlx4_en_get_ts_info(struct net_device *dev,
return ret; return ret;
} }
int mlx4_en_set_priv_flags(struct net_device *dev, u32 flags) static int mlx4_en_set_priv_flags(struct net_device *dev, u32 flags)
{ {
struct mlx4_en_priv *priv = netdev_priv(dev); struct mlx4_en_priv *priv = netdev_priv(dev);
bool bf_enabled_new = !!(flags & MLX4_EN_PRIV_FLAGS_BLUEFLAME); 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,7 +1256,7 @@ int mlx4_en_set_priv_flags(struct net_device *dev, u32 flags)
return 0; return 0;
} }
u32 mlx4_en_get_priv_flags(struct net_device *dev) static u32 mlx4_en_get_priv_flags(struct net_device *dev)
{ {
struct mlx4_en_priv *priv = netdev_priv(dev); struct mlx4_en_priv *priv = netdev_priv(dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册