f006b2c5df
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=maybe-uninitialized]
Here we can trivially move the assignment before that spin_unlock,
which reliably avoids the warning.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
xgene_enet_cle.c | ||
xgene_enet_cle.h | ||
xgene_enet_ethtool.c | ||
xgene_enet_hw.c | ||
xgene_enet_hw.h | ||
xgene_enet_main.c | ||
xgene_enet_main.h | ||
xgene_enet_ring2.c | ||
xgene_enet_ring2.h | ||
xgene_enet_sgmac.c | ||
xgene_enet_sgmac.h | ||
xgene_enet_xgmac.c | ||
xgene_enet_xgmac.h |