]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
net: sched: export __netdev_watchdog_up()
authorValentin Longchamp <valentin@longchamp.me>
Tue, 9 Jun 2020 20:11:54 +0000 (22:11 +0200)
committerKhalid Elmously <khalid.elmously@canonical.com>
Sat, 8 Aug 2020 05:53:12 +0000 (01:53 -0400)
BugLink: https://bugs.launchpad.net/bugs/1885942
[ 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: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
net/sched/sch_generic.c

index 7c3c5fdb82a96ee229e835c2940f527a74c6e153..896c9037155a5d9b2b1b214284eeab053388d3b4 100644 (file)
@@ -469,6 +469,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)
 {