Skip to content

Commit

Permalink
inet: frags: add __init to ip4_frags_ctl_register
Browse files Browse the repository at this point in the history
ip4_frags_ctl_register is only called by __init ipfrag_init

Signed-off-by: Fabian Frederick <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Fabian Frederick authored and davem330 committed Oct 1, 2014
1 parent 47d7a88 commit 57a02c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/ipv4/ip_fragment.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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
Expand Down

0 comments on commit 57a02c3

Please sign in to comment.