]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
qdisc: fix build with !CONFIG_NET_SCHED
authorstephen hemminger <stephen@networkplumber.org>
Sat, 31 Aug 2013 17:15:33 +0000 (10:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 Aug 2013 22:09:45 +0000 (18:09 -0400)
Multiqueue scheduler refers to default_qdisc_ops; therefore the
variable definition needs to be moved to handle case where net
scheduler API is not available.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_api.c
net/sched/sch_generic.c

index 812e57900591e40e37a615d2d8e9012d21ae370a..2adda7fa2d390c4bb2aec883cf049df7e7cef9ef 100644 (file)
@@ -131,11 +131,6 @@ static DEFINE_RWLOCK(qdisc_mod_lock);
  ************************************************/
 
 
-/* Qdisc to use by default */
-
-const struct Qdisc_ops *default_qdisc_ops = &pfifo_fast_ops;
-EXPORT_SYMBOL(default_qdisc_ops);
-
 /* The list of all installed queueing disciplines. */
 
 static struct Qdisc_ops *qdisc_base;
index 6b021106542c485cd98c63d799f7f7c3a1f2c99b..a74e278654aa2290a0ef3061d1392c5cf405e5f5 100644 (file)
 #include <net/pkt_sched.h>
 #include <net/dst.h>
 
+/* Qdisc to use by default */
+const struct Qdisc_ops *default_qdisc_ops = &pfifo_fast_ops;
+EXPORT_SYMBOL(default_qdisc_ops);
+
 /* Main transmission queue. */
 
 /* Modifications to data participating in scheduling must be protected with