Skip to contentSkip to conversation

net: sched: export __netdev_watchdog_up()

PATCH Superseded Valentin Longchamp 2 participants 2 messages Jun 3, 2020 – Jun 4, 2020

Subsystems (4)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: sched: export __netdev_watchdog_up()

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")
---
 net/sched/sch_generic.c | 1 +
 1 file changed, 1 insertion(+)
net/sched/sch_generic.c +1 -0
index 2efd5b61acef..f1816516f638 100644
@@ -464,6 +464,7 @@ void __netdev_watchdog_up(struct net_device *dev)
 			dev_hold(dev);
 	}
 }
+EXPORT_SYMBOL(__netdev_watchdog_up);
 
 static void dev_watchdog_up(struct net_device *dev)
 {
Signature · 1 line
2.25.1
maintainer
#1 lore raw

From: Valentin Longchamp <[email protected]>
Date: Wed, 3 Jun 2020 23:15:27 +0200

net/sched/sch_generic.c void __netdev_watchdog_up(struct net_device *dev) · line 467

Quoted 5 lines
net/sched/sch_generic.c +1 -0
@@ -464,6 +464,7 @@ void __netdev_watchdog_up(struct net_device *dev)
 			dev_hold(dev);
 	}
 }
+EXPORT_SYMBOL(__netdev_watchdog_up);

Please use EXPORT_SYMBOL_GPL(), thank you.