Skip to content

Commit f0a0c1c

Browse files
Fabian Frederickdavem330
authored andcommitted
ieee802154: fix __init functions
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>
1 parent 09bba1c commit f0a0c1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/ieee802154/reassembly.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ static void lowpan_frags_sysctl_unregister(void)
498498
unregister_net_sysctl_table(lowpan_ctl_header);
499499
}
500500
#else
501-
static inline int __init lowpan_frags_ns_sysctl_register(struct net *net)
501+
static inline int lowpan_frags_ns_sysctl_register(struct net *net)
502502
{
503503
return 0;
504504
}
@@ -507,7 +507,7 @@ static inline void lowpan_frags_ns_sysctl_unregister(struct net *net)
507507
{
508508
}
509509

510-
static inline int lowpan_frags_sysctl_register(void)
510+
static inline int __init lowpan_frags_sysctl_register(void)
511511
{
512512
return 0;
513513
}

0 commit comments

Comments
 (0)