Networking recently got rid of BUS_ID_SIZE. Use MII_BUS_ID_SIZE instead in bcm63xx_enet. Signed-off-by: Maxime Bizon <mbizon@xxxxxxxxxx> --- drivers/net/bcm63xx_enet.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/bcm63xx_enet.c b/drivers/net/bcm63xx_enet.c index 36324b3..af0114a 100644 --- a/drivers/net/bcm63xx_enet.c +++ b/drivers/net/bcm63xx_enet.c @@ -793,7 +793,7 @@ static int bcm_enet_open(struct net_device *dev) struct phy_device *phydev; int i, ret; unsigned int size; - char phy_id[BUS_ID_SIZE]; + char phy_id[MII_BUS_ID_SIZE + 3]; void *p; u32 val; @@ -802,7 +802,7 @@ static int bcm_enet_open(struct net_device *dev) if (priv->has_phy) { /* connect to PHY */ - snprintf(phy_id, BUS_ID_SIZE, PHY_ID_FMT, + snprintf(phy_id, sizeof(phy_id), PHY_ID_FMT, priv->mac_id ? "1" : "0", priv->phy_id); phydev = phy_connect(dev, phy_id, &bcm_enet_adjust_phy_link, 0, -- 1.6.0.4