[PATCH net-next v1] net: stmmac: Unexport stmmac_rx_offset() from stmmac.h

Andrew Lunn andrew at lunn.ch
Mon Jan 6 13:05:44 PST 2025


> +static inline unsigned int stmmac_rx_offset(struct stmmac_priv *priv)
> +{
> +	if (stmmac_xdp_is_enabled(priv))
> +		return XDP_PACKET_HEADROOM;
> +
> +	return 0;
> +}

Please drop the inline keyword. You don't need it in a .c file, it is
better to let the compiler to decide.


    Andrew

---
pw-bot: cr



More information about the linux-arm-kernel mailing list