Re: [PATCH net-next 05/12] net: ethtool: create and export ethtool_dev_mm_supported()

From: Vladimir Oltean
Date: Fri Feb 17 2023 - 08:00:48 EST


On Fri, Feb 17, 2023 at 01:21:19AM +0200, Vladimir Oltean wrote:
> +bool ethtool_dev_mm_supported(struct net_device *dev)
> +{
> + const struct ethtool_ops *ops = dev->ethtool_ops;
> + bool supported;
> + int ret;
> +
> + ASSERT_RTNL();
> +
> + if (!ops)
> + return false;
> +
> + ret = ethnl_ops_begin(dev);
> + if (ret < 0)
> + return false;
> +
> + supported = __ethtool_dev_mm_supported(dev);
> +
> + ethnl_ops_complete(dev);
> +
> + return supported;
> +}

In the first patch that uses this:

ERROR: modpost: "ethtool_dev_mm_supported" [net/sched/sch_mqprio.ko] undefined!

due to a missing EXPORT_SYMBOL_GPL(). Sorry.