mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
inet: frags: add __init to ip4_frags_ctl_register
ip4_frags_ctl_register is only called by __init ipfrag_init Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
47d7a88c18
commit
57a02c39c1
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void ip4_frags_ctl_register(void)
|
static inline void __init ip4_frags_ctl_register(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue