]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net/mlx5e: Make mlx5e_dcbnl_ops static
authorSaeed Mahameed <saeedm@mellanox.com>
Fri, 29 May 2020 07:36:10 +0000 (00:36 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 30 May 2020 04:20:23 +0000 (21:20 -0700)
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: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c

index ec7b332d74c273671a7f89037621c79daf95c6a7..bc102d094bbd127212af43d3793ab3c08794c5f1 100644 (file)
@@ -985,7 +985,7 @@ static int mlx5e_dcbnl_setbuffer(struct net_device *dev,
        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_setets    = mlx5e_dcbnl_ieee_setets,
        .ieee_getmaxrate = mlx5e_dcbnl_ieee_getmaxrate,