e1000: clean LTO warnings
During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings. Exemplary compiler warning to suppress (with LTO enabled): error: 'link' may be used uninitialized in this function [-Werror=maybe-uninitialized] if (link) { Signed-off-by: Andrzej Ostruszka <aostruszka@marvell.com> Approved by: imp Obtained from: DPDK (46136031f19107f4e9b6b3a952cb7f57877a7f0f) MFC after: 1 week
This commit is contained in:
parent
ecf2a89a99
commit
089cdb3990
@ -1062,7 +1062,7 @@ static s32 e1000_setup_copper_link_82543(struct e1000_hw *hw)
|
|||||||
{
|
{
|
||||||
u32 ctrl;
|
u32 ctrl;
|
||||||
s32 ret_val;
|
s32 ret_val;
|
||||||
bool link;
|
bool link = true;
|
||||||
|
|
||||||
DEBUGFUNC("e1000_setup_copper_link_82543");
|
DEBUGFUNC("e1000_setup_copper_link_82543");
|
||||||
|
|
||||||
|
@ -5620,7 +5620,7 @@ void e1000_igp3_phy_powerdown_workaround_ich8lan(struct e1000_hw *hw)
|
|||||||
void e1000_gig_downshift_workaround_ich8lan(struct e1000_hw *hw)
|
void e1000_gig_downshift_workaround_ich8lan(struct e1000_hw *hw)
|
||||||
{
|
{
|
||||||
s32 ret_val;
|
s32 ret_val;
|
||||||
u16 reg_data;
|
u16 reg_data = 0;
|
||||||
|
|
||||||
DEBUGFUNC("e1000_gig_downshift_workaround_ich8lan");
|
DEBUGFUNC("e1000_gig_downshift_workaround_ich8lan");
|
||||||
|
|
||||||
|
@ -1695,7 +1695,7 @@ s32 e1000_copper_link_autoneg(struct e1000_hw *hw)
|
|||||||
s32 e1000_setup_copper_link_generic(struct e1000_hw *hw)
|
s32 e1000_setup_copper_link_generic(struct e1000_hw *hw)
|
||||||
{
|
{
|
||||||
s32 ret_val;
|
s32 ret_val;
|
||||||
bool link;
|
bool link = true;
|
||||||
|
|
||||||
DEBUGFUNC("e1000_setup_copper_link_generic");
|
DEBUGFUNC("e1000_setup_copper_link_generic");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user