]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
net: sched: export __netdev_watchdog_up()
authorValentin Longchamp <valentin@longchamp.me>
Tue, 9 Jun 2020 20:11:54 +0000 (22:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Jun 2020 14:42:58 +0000 (16:42 +0200)
[ Upstream commit 1a3db27ad9a72d033235b9673653962c02e3486e ]

Since the quiesce/activate rework, __netdev_watchdog_up() is directly
called in the ucc_geth driver.

Unfortunately, this function is not available for modules and thus
ucc_geth cannot be built as a module anymore. Fix it by exporting
__netdev_watchdog_up().

Since the commit introducing the regression was backported to stable
branches, this one should ideally be as well.

Fixes: 79dde73cf9bc ("net/ethernet/freescale: rework quiesce/activate for ucc_geth")
Signed-off-by: Valentin Longchamp <valentin@longchamp.me>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sched/sch_generic.c

index 2efd5b61acef1edc10351f552f8e9e61fbfa9877..9763da6daa9f1b76712e47cf9ba549607e8595cd 100644 (file)
@@ -464,6 +464,7 @@ void __netdev_watchdog_up(struct net_device *dev)
                        dev_hold(dev);
        }
 }
+EXPORT_SYMBOL_GPL(__netdev_watchdog_up);
 
 static void dev_watchdog_up(struct net_device *dev)
 {