Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git]
/
kernel
/
net
/
sched
/
sch_blackhole.c
diff --git
a/kernel/net/sched/sch_blackhole.c
b/kernel/net/sched/sch_blackhole.c
index
094a874
..
3fee70d
100644
(file)
--- a/
kernel/net/sched/sch_blackhole.c
+++ b/
kernel/net/sched/sch_blackhole.c
@@
-11,7
+11,7
@@
* Note: Quantum tunneling is not supported.
*/
* Note: Quantum tunneling is not supported.
*/
-#include <linux/
module
.h>
+#include <linux/
init
.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/skbuff.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/skbuff.h>
@@
-37,17
+37,8
@@
static struct Qdisc_ops blackhole_qdisc_ops __read_mostly = {
.owner = THIS_MODULE,
};
.owner = THIS_MODULE,
};
-static int __init blackhole_
module_
init(void)
+static int __init blackhole_init(void)
{
return register_qdisc(&blackhole_qdisc_ops);
}
{
return register_qdisc(&blackhole_qdisc_ops);
}
-
-static void __exit blackhole_module_exit(void)
-{
- unregister_qdisc(&blackhole_qdisc_ops);
-}
-
-module_init(blackhole_module_init)
-module_exit(blackhole_module_exit)
-
-MODULE_LICENSE("GPL");
+device_initcall(blackhole_init)