net/mlx5e: Make function mlx5i_grp_sw_update_stats() static
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 5 Sep 2018 11:16:02 +0000 (11:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Sep 2018 15:06:13 +0000 (08:06 -0700)
Fixes the following sparse warning:

drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c:119:6: warning:
 symbol 'mlx5i_grp_sw_update_stats' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c

index 48886b3ed3209ab7530cee4dfac4be693d00d394..3dd9f885ed8b7b12f50691845132b51b068558ac 100644 (file)
@@ -116,7 +116,7 @@ static void mlx5i_cleanup(struct mlx5e_priv *priv)
        /* Do nothing .. */
 }
 
-void mlx5i_grp_sw_update_stats(struct mlx5e_priv *priv)
+static void mlx5i_grp_sw_update_stats(struct mlx5e_priv *priv)
 {
        struct mlx5e_sw_stats s = { 0 };
        int i, j;