diff options
Diffstat (limited to 'net/ipv4/udplite.c')
| -rw-r--r-- | net/ipv4/udplite.c | 7 |
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 | }; |
| 61 | EXPORT_SYMBOL(udplite_prot); | ||
| 61 | 62 | ||
| 62 | static struct inet_protosw udplite4_protosw = { | 63 | static 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 | ||
| 84 | static int udplite4_proc_init_net(struct net *net) | 85 | static 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 | ||
| 89 | static void udplite4_proc_exit_net(struct net *net) | 90 | static 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: | |||
| 127 | out_register_err: | 128 | out_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 | |||
| 131 | EXPORT_SYMBOL(udplite_prot); | ||
