summaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6/patches-2.6.28
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-07-18 20:31:21 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-07-18 20:31:21 +0000
commita9f188546b65217d31a8b6f5a24e5af39cdc0259 (patch)
tree3c2bf4ef05fd9b06e1193b9e7c97f78e24a6682f /target/linux/generic-2.6/patches-2.6.28
parent1bb61233b7fbb7a04cc76ce9d5b53ee33b42188f (diff)
sched: fix compile errors with CONFIG_NET_SCHED deactivated in the kernel config (#5553)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16903 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.6/patches-2.6.28')
-rw-r--r--target/linux/generic-2.6/patches-2.6.28/260-extend_pfifo_fast.patch4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.28/260-extend_pfifo_fast.patch b/target/linux/generic-2.6/patches-2.6.28/260-extend_pfifo_fast.patch
index a9bdb06f8..90773f704 100644
--- a/target/linux/generic-2.6/patches-2.6.28/260-extend_pfifo_fast.patch
+++ b/target/linux/generic-2.6/patches-2.6.28/260-extend_pfifo_fast.patch
@@ -123,11 +123,12 @@
.enqueue = pfifo_fast_enqueue,
.dequeue = pfifo_fast_dequeue,
.requeue = pfifo_fast_requeue,
-@@ -739,3 +803,16 @@ void dev_shutdown(struct net_device *dev
+@@ -739,3 +803,18 @@ void dev_shutdown(struct net_device *dev
shutdown_scheduler_queue(dev, &dev->rx_queue, &noop_qdisc);
WARN_ON(timer_pending(&dev->watchdog_timer));
}
+
++#ifdef CONFIG_NET_SCHED
+static int __init sch_generic_init(void)
+{
+ return register_qdisc(&pfifo_fast_ops);
@@ -140,3 +141,4 @@
+
+module_init(sch_generic_init)
+module_exit(sch_generic_exit)
++#endif