* [PATCH] BRIDGE : br_fdb_fini() should be __exit_refok instead of __exit
@ 2007-12-05 12:41 Eric Dumazet
2007-12-05 12:49 ` Stephen Hemminger
2007-12-05 13:07 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Eric Dumazet @ 2007-12-05 12:41 UTC (permalink / raw)
To: David S. Miller; +Cc: Linux Netdev List
[-- Attachment #1: Type: text/plain, Size: 507 bytes --]
Hi David
Building last net-2.6.25 git tree gave me this warning :
WARNING: vmlinux.o(.init.text+0x2a957): Section mismatch: reference to
.exit.text:br_fdb_fini (between 'br_init' and 'br_fdb_init')
This is because br_init() (marked __init) can call br_fdb_fini() (marked __exit).
I am not sure the following is the right fix, since __exit_refok is quite new,
and seldom used.
[PATCH] BRIDGE : br_fdb_fini() should be __exit_refok instead of __exit
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
[-- Attachment #2: br_fdb_fini.patch --]
[-- Type: text/plain, Size: 311 bytes --]
diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c
index eb57502..6caeba5 100644
--- a/net/bridge/br_fdb.c
+++ b/net/bridge/br_fdb.c
@@ -44,7 +44,7 @@ int __init br_fdb_init(void)
return 0;
}
-void __exit br_fdb_fini(void)
+void __exit_refok br_fdb_fini(void)
{
kmem_cache_destroy(br_fdb_cache);
}
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] BRIDGE : br_fdb_fini() should be __exit_refok instead of __exit
2007-12-05 12:41 [PATCH] BRIDGE : br_fdb_fini() should be __exit_refok instead of __exit Eric Dumazet
@ 2007-12-05 12:49 ` Stephen Hemminger
2007-12-05 13:07 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Hemminger @ 2007-12-05 12:49 UTC (permalink / raw)
To: Eric Dumazet; +Cc: David S. Miller, Linux Netdev List
On Wed, 05 Dec 2007 13:41:24 +0100
Eric Dumazet <dada1@cosmosbay.com> wrote:
> Hi David
>
> Building last net-2.6.25 git tree gave me this warning :
>
> WARNING: vmlinux.o(.init.text+0x2a957): Section mismatch: reference to
> .exit.text:br_fdb_fini (between 'br_init' and 'br_fdb_init')
>
> This is because br_init() (marked __init) can call br_fdb_fini() (marked __exit).
>
> I am not sure the following is the right fix, since __exit_refok is quite new,
> and seldom used.
>
> [PATCH] BRIDGE : br_fdb_fini() should be __exit_refok instead of __exit
>
> Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
>
Andrew put a patch in his tree to just take off the __exit.
That seems like the easiest fix for a one line function.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] BRIDGE : br_fdb_fini() should be __exit_refok instead of __exit
2007-12-05 12:41 [PATCH] BRIDGE : br_fdb_fini() should be __exit_refok instead of __exit Eric Dumazet
2007-12-05 12:49 ` Stephen Hemminger
@ 2007-12-05 13:07 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2007-12-05 13:07 UTC (permalink / raw)
To: dada1; +Cc: netdev
From: Eric Dumazet <dada1@cosmosbay.com>
Date: Wed, 05 Dec 2007 13:41:24 +0100
> Building last net-2.6.25 git tree gave me this warning :
>
> WARNING: vmlinux.o(.init.text+0x2a957): Section mismatch: reference to
> .exit.text:br_fdb_fini (between 'br_init' and 'br_fdb_init')
>
> This is because br_init() (marked __init) can call br_fdb_fini() (marked __exit).
>
> I am not sure the following is the right fix, since __exit_refok is quite new,
> and seldom used.
>
> [PATCH] BRIDGE : br_fdb_fini() should be __exit_refok instead of __exit
>
> Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
I have another patch like this from Andrew's -mm queue sitting
in my inbox, which I'll review and apply.
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-12-05 13:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-05 12:41 [PATCH] BRIDGE : br_fdb_fini() should be __exit_refok instead of __exit Eric Dumazet
2007-12-05 12:49 ` Stephen Hemminger
2007-12-05 13:07 ` 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).