* ipv6: fix icmpv6_cleanup/icmpv6_init section mismatch
@ 2008-03-03 12:52 Alexey Dobriyan
2008-03-03 14:54 ` [PATCH v2] " Alexey Dobriyan
0 siblings, 1 reply; 3+ messages in thread
From: Alexey Dobriyan @ 2008-03-03 12:52 UTC (permalink / raw)
To: davem; +Cc: netdev, den
icmpv6_cleanup() is called from inet6_init() which is __init, so the
former can't be __exit.
Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
---
net/ipv6/icmp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/net/ipv6/icmp.c
+++ b/net/ipv6/icmp.c
@@ -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);
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v2] ipv6: fix icmpv6_cleanup/icmpv6_init section mismatch
2008-03-03 12:52 ipv6: fix icmpv6_cleanup/icmpv6_init section mismatch Alexey Dobriyan
@ 2008-03-03 14:54 ` Alexey Dobriyan
2008-03-03 20:03 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Alexey Dobriyan @ 2008-03-03 14:54 UTC (permalink / raw)
To: davem; +Cc: netdev, den
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@sw.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);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] ipv6: fix icmpv6_cleanup/icmpv6_init section mismatch
2008-03-03 14:54 ` [PATCH v2] " Alexey Dobriyan
@ 2008-03-03 20:03 ` David Miller
0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2008-03-03 20:03 UTC (permalink / raw)
To: adobriyan; +Cc: netdev, den
From: Alexey Dobriyan <adobriyan@sw.ru>
Date: Mon, 3 Mar 2008 17:54:51 +0300
> Doh! Ignore this one. Below is correct.
> --------
>
> [PATCH] ipv6: fix inet6_init/icmpv6_cleanup sections mismatch
>
> Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Applied.
However, dealing with all of these interactions between real
__{init,exit} and __net_{init,exit} becomes tiresome.
We used to be able to mark icmpv6_cleanup as __exit now
with the netns stuff we can't, that's a step backwards and
it's happening a lot as the conversions take place.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-03-03 20:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-03 12:52 ipv6: fix icmpv6_cleanup/icmpv6_init section mismatch Alexey Dobriyan
2008-03-03 14:54 ` [PATCH v2] " Alexey Dobriyan
2008-03-03 20:03 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).