From: Wei Yongjun Date: Wed, 5 Sep 2018 11:16:02 +0000 (+0000) Subject: net/mlx5e: Make function mlx5i_grp_sw_update_stats() static X-Git-Tag: v4.20-rc1~14^2~436 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=fbb66ad5dcbebc1bb9330acfbd684df06e016d56;p=uclinux-h8%2Flinux.git net/mlx5e: Make function mlx5i_grp_sw_update_stats() static 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 Reviewed-by: Leon Romanovsky Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c b/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c index 48886b3ed320..3dd9f885ed8b 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c @@ -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;