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:
Родитель
47d7a88c18
Коммит
57a02c39c1
|
@ -790,7 +790,7 @@ static void __net_exit ip4_frags_ns_ctl_unregister(struct net *net)
|
|||
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);
|
||||
}
|
||||
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче