Thread (20 messages) flat view 20 messages, 3 authors, 2023-02-20

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

From: Vladimir Oltean <vladimir.oltean@nxp.com>
Date: 2023-02-17 13:00:48
Also in: lkml

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help