Skip to content

Commit

Permalink
ieee802154: fix __init functions
Browse files Browse the repository at this point in the history
Commit 3243acd
("ieee802154: add __init to lowpan_frags_sysctl_register")

added __init to lowpan_frags_ns_sysctl_register instead of
lowpan_frags_sysctl_register

Suggested-by: Alexander Aring <alex.aring@gmail.com>
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 Oct 1, 2014
1 parent 09bba1c commit f0a0c1c
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 @@ -498,7 +498,7 @@ static void lowpan_frags_sysctl_unregister(void)
unregister_net_sysctl_table(lowpan_ctl_header);
}
#else
static inline int __init lowpan_frags_ns_sysctl_register(struct net *net)
static inline int lowpan_frags_ns_sysctl_register(struct net *net)
{
return 0;
}
Expand All @@ -507,7 +507,7 @@ static inline void lowpan_frags_ns_sysctl_unregister(struct net *net)
{
}

static inline int lowpan_frags_sysctl_register(void)
static inline int __init lowpan_frags_sysctl_register(void)
{
return 0;
}
Expand Down

0 comments on commit f0a0c1c

Please sign in to comment.