From: Christian Lamparter <chunk...@gmail.com> Date: Mon, 4 Feb 2019 22:58:29 +0100
> @@ -1195,6 +1195,27 @@ static inline int emac_alloc_rx_skb(struct > emac_instance *dev, int slot, > return 0; > } > > +static inline int > +emac_alloc_rx_skb(struct emac_instance *dev, int slot) > +{ > + struct sk_buff *skb; > + > + skb = __netdev_alloc_skb_ip_align(dev->ndev, dev->rx_skb_size, > + GFP_KERNEL); > + > + return __emac_prepare_rx_skb(skb, dev, slot); > +} > + > +static inline int > +emac_alloc_rx_skb_napi(struct emac_instance *dev, int slot) > +{ > + struct sk_buff *skb; > + > + skb = napi_alloc_skb(&dev->mal->napi, dev->rx_skb_size); > + > + return __emac_prepare_rx_skb(skb, dev, slot); > +} > + Do not use the inline keyword in foo.c files, let the compiler decide. Thank you.