projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47d7a88
)
inet: frags: add __init to ip4_frags_ctl_register
author
Fabian Frederick
<fabf@skynet.be>
Wed, 1 Oct 2014 17:18:57 +0000
(19:18 +0200)
committer
David S. Miller
<davem@davemloft.net>
Wed, 1 Oct 2014 19:46:19 +0000
(15:46 -0400)
ip4_frags_ctl_register is only called by __init ipfrag_init
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_fragment.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/ip_fragment.c
b/net/ipv4/ip_fragment.c
index 15f0e2bad7ad10989ece456fd17cae589e1493b3..2811cc18701a2f49499286fd1a5c4f891abf6144 100644
(file)
--- a/
net/ipv4/ip_fragment.c
+++ b/
net/ipv4/ip_fragment.c
@@
-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);
}
@@
-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