lkml.org 
[lkml]   [2023]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH net-next 05/12] net: ethtool: create and export ethtool_dev_mm_supported()
    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.

    \
     
     \ /
      Last update: 2023-03-27 00:26    [W:2.138 / U:0.304 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site