aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udplite.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/udplite.c')
-rw-r--r--net/ipv4/udplite.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/ipv4/udplite.c b/net/ipv4/udplite.c
index 66f79513f4a5..ab76aa928fa9 100644
--- a/net/ipv4/udplite.c
+++ b/net/ipv4/udplite.c
@@ -58,6 +58,7 @@ struct proto udplite_prot = {
58 .compat_getsockopt = compat_udp_getsockopt, 58 .compat_getsockopt = compat_udp_getsockopt,
59#endif 59#endif
60}; 60};
61EXPORT_SYMBOL(udplite_prot);
61 62
62static struct inet_protosw udplite4_protosw = { 63static struct inet_protosw udplite4_protosw = {
63 .type = SOCK_DGRAM, 64 .type = SOCK_DGRAM,
@@ -81,12 +82,12 @@ static struct udp_seq_afinfo udplite4_seq_afinfo = {
81 }, 82 },
82}; 83};
83 84
84static int udplite4_proc_init_net(struct net *net) 85static int __net_init udplite4_proc_init_net(struct net *net)
85{ 86{
86 return udp_proc_register(net, &udplite4_seq_afinfo); 87 return udp_proc_register(net, &udplite4_seq_afinfo);
87} 88}
88 89
89static void udplite4_proc_exit_net(struct net *net) 90static void __net_exit udplite4_proc_exit_net(struct net *net)
90{ 91{
91 udp_proc_unregister(net, &udplite4_seq_afinfo); 92 udp_proc_unregister(net, &udplite4_seq_afinfo);
92} 93}
@@ -127,5 +128,3 @@ out_unregister_proto:
127out_register_err: 128out_register_err:
128 printk(KERN_CRIT "%s: Cannot add UDP-Lite protocol.\n", __func__); 129 printk(KERN_CRIT "%s: Cannot add UDP-Lite protocol.\n", __func__);
129} 130}
130
131EXPORT_SYMBOL(udplite_prot);