summaryrefslogtreecommitdiffstats
path: root/net/ieee802154
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-09-30 22:34:08 +0200
committerDavid S. Miller <davem@davemloft.net>2014-09-30 17:08:06 -0400
commit3243acd37fd9b7fc4b19318eddf28b418b3b060a (patch)
tree4ddfe43e16ed29af7fb4f2b681ff07ded216e990 /net/ieee802154
parent0d4a2f9a33ea0d9964afca92b9b62e943c00b904 (diff)
downloadop-kernel-dev-3243acd37fd9b7fc4b19318eddf28b418b3b060a.zip
op-kernel-dev-3243acd37fd9b7fc4b19318eddf28b418b3b060a.tar.gz
ieee802154: add __init to lowpan_frags_sysctl_register
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>
Diffstat (limited to 'net/ieee802154')
-rw-r--r--net/ieee802154/reassembly.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ieee802154/reassembly.c b/net/ieee802154/reassembly.c
index 32755cb..30ec608 100644
--- a/net/ieee802154/reassembly.c
+++ b/net/ieee802154/reassembly.c
@@ -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",
@@ -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;
}
OpenPOWER on IntegriCloud