Skip to content

Commit

Permalink
ieee802154: add __init to lowpan_frags_sysctl_register
Browse files Browse the repository at this point in the history
lowpan_frags_sysctl_register is only called by __init lowpan_net_frag_init
(part of the lowpan module).

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Fabian Frederick authored and David S. Miller committed Sep 30, 2014
1 parent 0d4a2f9 commit 3243acd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/ieee802154/reassembly.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ static void __net_exit lowpan_frags_ns_sysctl_unregister(struct net *net)

static struct ctl_table_header *lowpan_ctl_header;

static int lowpan_frags_sysctl_register(void)
static int __init lowpan_frags_sysctl_register(void)
{
lowpan_ctl_header = register_net_sysctl(&init_net,
"net/ieee802154/6lowpan",
Expand All @@ -498,7 +498,7 @@ static void lowpan_frags_sysctl_unregister(void)
unregister_net_sysctl_table(lowpan_ctl_header);
}
#else
static inline int lowpan_frags_ns_sysctl_register(struct net *net)
static inline int __init lowpan_frags_ns_sysctl_register(struct net *net)
{
return 0;
}
Expand Down

0 comments on commit 3243acd

Please sign in to comment.