* [PATCH] fix br_fdb_fini() section mismatch
@ 2007-12-06 5:26 Harald Welte
2007-12-06 5:33 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Harald Welte @ 2007-12-06 5:26 UTC (permalink / raw)
To: Linux Netdev List; +Cc: linux-kernel, David Miller
When compiling a kernel (current linus git or 2.6.24-rc4) with built-in
CONFIG_BRIDGE, I get the following error:
LD .tmp_vmlinux1
`br_fdb_fini' referenced in section `.init.text' of net/built-in.o: defined in discarded section `.exit.text' of net/built-in.o
make: *** [.tmp_vmlinux1] Error 1
This patch fixes it.
Signed-off-by: Harald Welte <laforge@gnumonks.org>
diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c
index eb57502..bc40377 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 br_fdb_fini(void)
{
kmem_cache_destroy(br_fdb_cache);
}
--
- Harald Welte <laforge@gnumonks.org> http://gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fix br_fdb_fini() section mismatch
2007-12-06 5:26 [PATCH] fix br_fdb_fini() section mismatch Harald Welte
@ 2007-12-06 5:33 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-12-06 5:33 UTC (permalink / raw)
To: laforge; +Cc: netdev, linux-kernel
From: Harald Welte <laforge@gnumonks.org>
Date: Thu, 6 Dec 2007 10:56:58 +0530
> When compiling a kernel (current linus git or 2.6.24-rc4) with built-in
> CONFIG_BRIDGE, I get the following error:
>
> LD .tmp_vmlinux1
> `br_fdb_fini' referenced in section `.init.text' of net/built-in.o: defined in discarded section `.exit.text' of net/built-in.o
> make: *** [.tmp_vmlinux1] Error 1
>
> This patch fixes it.
>
> Signed-off-by: Harald Welte <laforge@gnumonks.org>
Thanks, I already have this in my net-2.6.25 tree and will propagate
it to 2.6.24-rcX as well.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-06 6:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-06 5:26 [PATCH] fix br_fdb_fini() section mismatch Harald Welte
2007-12-06 5:33 ` 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).