[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 3 Mar 2008 17:54:51 +0300
From: Alexey Dobriyan <adobriyan@...ru>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, den@...nvz.org
Subject: [PATCH v2] ipv6: fix icmpv6_cleanup/icmpv6_init section mismatch
On Mon, Mar 03, 2008 at 03:52:17PM +0300, Alexey Dobriyan wrote:
> icmpv6_cleanup() is called from inet6_init() which is __init, so the
> former can't be __exit.
Doh! Ignore this one. Below is correct.
--------
[PATCH] ipv6: fix inet6_init/icmpv6_cleanup sections mismatch
Signed-off-by: Alexey Dobriyan <adobriyan@...ru>
---
net/ipv6/icmp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/net/ipv6/icmp.c
+++ b/net/ipv6/icmp.c
@@ -844,7 +844,7 @@ static void __net_exit icmpv6_sk_exit(struct net *net)
kfree(net->ipv6.icmp_sk);
}
-static struct pernet_operations __net_initdata icmpv6_sk_ops = {
+static struct pernet_operations icmpv6_sk_ops = {
.init = icmpv6_sk_init,
.exit = icmpv6_sk_exit,
};
@@ -868,7 +868,7 @@ fail:
return err;
}
-void __exit icmpv6_cleanup(void)
+void icmpv6_cleanup(void)
{
unregister_pernet_subsys(&icmpv6_sk_ops);
inet6_del_protocol(&icmpv6_protocol, IPPROTO_ICMPV6);
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists