Re: [PATCH net-next 3/3] net: xgene: avoid bogus maybe-uninitialized warning

2016-12-08 Thread David Miller
From: Arnd Bergmann Date: Thu, 8 Dec 2016 22:57:05 +0100 > In some configurations, gcc cannot trace the state of variables > across a spin_unlock() barrier, leading to a warning about > correct code: > > xgene_enet_main.c: In function 'xgene_enet_start_xmit': > ../../../phy/mdio-xgene.h:112:14:

[PATCH net-next 3/3] net: xgene: avoid bogus maybe-uninitialized warning

2016-12-08 Thread Arnd Bergmann
In some configurations, gcc cannot trace the state of variables across a spin_unlock() barrier, leading to a warning about correct code: xgene_enet_main.c: In function 'xgene_enet_start_xmit': ../../../phy/mdio-xgene.h:112:14: error: 'mss_index' may be used uninitialized in this function [-Werror