Skip to contentSkip to conversation

amd-xgbe-phy: Fix build break for missing declaration

PATCH Applied Tom Lendacky 2 participants 2 messages Sep 7, 2014

Subsystems (3)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 amd-xgbe-phy: Fix build break for missing declaration

A previous patch inadvertently deleted a declaration in the amd_xgbe_an_tx_training function causing the build to fail.

Add the declaration for 'priv' back to the function.

---
 drivers/net/phy/amd-xgbe-phy.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/phy/amd-xgbe-phy.c +1 -0
index 4e1f7f7..c456559 100644
@@ -638,6 +638,7 @@ static int amd_xgbe_phy_set_mode(struct phy_device *phydev,
 static enum amd_xgbe_phy_an amd_xgbe_an_tx_training(struct phy_device *phydev,
 						    enum amd_xgbe_phy_rx *state)
 {
+	struct amd_xgbe_phy_priv *priv = phydev->priv;
 	int ad_reg, lp_reg, ret;
 
 	*state = AMD_XGBE_RX_COMPLETE;
maintainer Applied
#1 lore raw

From: Tom Lendacky <[email protected]>
Date: Sun, 7 Sep 2014 09:54:41 -0500

Quoted 6 lines

A previous patch inadvertently deleted a declaration in the amd_xgbe_an_tx_training function causing the build to fail.

Add the declaration for 'priv' back to the function.

Applied.