From: Fabian Frederick Date: Wed, 1 Oct 2014 05:27:46 +0000 (+0200) Subject: ieee802154: fix __init functions X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f0a0c1cedfe421b32d2aa39971c43f83f8e5fa42;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ieee802154: fix __init functions Commit 3243acd37fd9 ("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 Signed-off-by: Fabian Frederick Signed-off-by: David S. Miller --- diff --git a/net/ieee802154/reassembly.c b/net/ieee802154/reassembly.c index 30ec608b351a..7cfcd6885225 100644 --- a/net/ieee802154/reassembly.c +++ b/net/ieee802154/reassembly.c @@ -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; } @@ -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; }