Commit 57a02c39 authored by Fabian Frederick's avatar Fabian Frederick Committed by David S. Miller

inet: frags: add __init to ip4_frags_ctl_register

ip4_frags_ctl_register is only called by __init ipfrag_init
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 47d7a88c
...@@ -790,7 +790,7 @@ static void __net_exit ip4_frags_ns_ctl_unregister(struct net *net) ...@@ -790,7 +790,7 @@ static void __net_exit ip4_frags_ns_ctl_unregister(struct net *net)
kfree(table); kfree(table);
} }
static void ip4_frags_ctl_register(void) static void __init ip4_frags_ctl_register(void)
{ {
register_net_sysctl(&init_net, "net/ipv4", ip4_frags_ctl_table); register_net_sysctl(&init_net, "net/ipv4", ip4_frags_ctl_table);
} }
...@@ -804,7 +804,7 @@ static inline void ip4_frags_ns_ctl_unregister(struct net *net) ...@@ -804,7 +804,7 @@ static inline void ip4_frags_ns_ctl_unregister(struct net *net)
{ {
} }
static inline void ip4_frags_ctl_register(void) static inline void __init ip4_frags_ctl_register(void)
{ {
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment