Commit eb243871 authored by Saeed Mahameed's avatar Saeed Mahameed

net/mlx5e: Make mlx5e_dcbnl_ops static

Fix sparse warning:
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c:988:29:
error: symbol 'mlx5e_dcbnl_ops' was not declared. Should it be static?
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent 58ff18e1
...@@ -985,7 +985,7 @@ static int mlx5e_dcbnl_setbuffer(struct net_device *dev, ...@@ -985,7 +985,7 @@ static int mlx5e_dcbnl_setbuffer(struct net_device *dev,
return err; return err;
} }
const struct dcbnl_rtnl_ops mlx5e_dcbnl_ops = { static const struct dcbnl_rtnl_ops mlx5e_dcbnl_ops = {
.ieee_getets = mlx5e_dcbnl_ieee_getets, .ieee_getets = mlx5e_dcbnl_ieee_getets,
.ieee_setets = mlx5e_dcbnl_ieee_setets, .ieee_setets = mlx5e_dcbnl_ieee_setets,
.ieee_getmaxrate = mlx5e_dcbnl_ieee_getmaxrate, .ieee_getmaxrate = mlx5e_dcbnl_ieee_getmaxrate,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment