From: Russell King <rmk+ker...@armlinux.org.uk> Date: Thu, 18 Jun 2020 16:38:51 +0100
> diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > index 7653277d03b7..8c8314715efd 100644 > --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > @@ -4767,12 +4767,17 @@ static void mvpp2_port_copy_mac_addr(struct > net_device *dev, struct mvpp2 *priv, > eth_hw_addr_random(dev); > } > > +static inline struct mvpp2_port * > +mvpp2_phylink_to_port(struct phylink_config *config) > +{ > + return container_of(config, struct mvpp2_port, phylink_config); > +} Please don't use inline in foo.c files, thank you.