From: Niklas Söderlund Date: Mon, 16 Jul 2018 12:19:25 +0000 (+0200) Subject: ravb: fix shadowing of symbol 'stats' in ravb_get_ethtool_stats() X-Git-Tag: v4.19-rc1~140^2~336^2~2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c94f2fc4fc19a0ab29456b652975e08e0362c94a;p=uclinux-h8%2Flinux.git ravb: fix shadowing of symbol 'stats' in ravb_get_ethtool_stats() Inside a loop in ravb_get_ethtool_stats() a variable 'stats' is declared resulting in the argument also named 'stats' to be shadowed. Fix this warning by renaming the unused argument 'stats' to 'estats'. This fixes the sparse warning: ravb_main.c:1225:36: originally declared here ravb_main.c:1233:41: warning: symbol 'stats' shadows an earlier one Signed-off-by: Niklas Söderlund Reviewed-by: Geert Uytterhoeven Acked-by: Sergei Shtylyov Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c index 4a7f54c8e7aa..e5784f0eac3d 100644 --- a/drivers/net/ethernet/renesas/ravb_main.c +++ b/drivers/net/ethernet/renesas/ravb_main.c @@ -1226,7 +1226,7 @@ static int ravb_get_sset_count(struct net_device *netdev, int sset) } static void ravb_get_ethtool_stats(struct net_device *ndev, - struct ethtool_stats *stats, u64 *data) + struct ethtool_stats *estats, u64 *data) { struct ravb_private *priv = netdev_priv(ndev); int i = 0;