Re: [PATCH] ieee80211: fix section mismatch warning

Previous thread: oops with ipcomp by Beschorner Daniel on Friday, February 1, 2008 - 6:09 am. (3 messages)

Next thread: [PATCH for 2.6.25 1/2] [NET] ucc_geth: fix module removal by Anton Vorontsov on Friday, February 1, 2008 - 9:22 am. (2 messages)
To: netdev <netdev@...>, Johannes Berg <johannes@...>, John W. Linville <linville@...>, David S. Miller <davem@...>
Date: Friday, February 1, 2008 - 7:52 am

Fix the following warnings:
WARNING: net/built-in.o(.init.text+0xd6c0): Section mismatch in reference from the function ieee80211_init() to the function .exit.text:rc80211_simple_exit()
WARNING: net/built-in.o(.init.text+0xd6c5): Section mismatch in reference from the function ieee80211_init() to the function .exit.text:rc80211_pid_exit()

The fix was simple - I just did as modpost told me and removed the
wrong __exit annotation of rc80211_simple_exit and rc80211_pid_exit.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: John W. Linville <linville@tuxdriver.com>
Cc: David S. Miller <davem@davemloft.net>
---

With this patch my allyesconfig build on x86 (64 bit)
is section mismatch clean in net/

Sam

diff --git a/net/mac80211/rc80211_pid_algo.c b/net/mac80211/rc80211_pid_algo.c
index 554c4ba..c339571 100644
--- a/net/mac80211/rc80211_pid_algo.c
+++ b/net/mac80211/rc80211_pid_algo.c
@@ -538,7 +538,7 @@ int __init rc80211_pid_init(void)
return ieee80211_rate_control_register(&mac80211_rcpid);
}

-void __exit rc80211_pid_exit(void)
+void rc80211_pid_exit(void)
{
ieee80211_rate_control_unregister(&mac80211_rcpid);
}
diff --git a/net/mac80211/rc80211_simple.c b/net/mac80211/rc80211_simple.c
index 934676d..9a78b11 100644
--- a/net/mac80211/rc80211_simple.c
+++ b/net/mac80211/rc80211_simple.c
@@ -389,7 +389,7 @@ int __init rc80211_simple_init(void)
return ieee80211_rate_control_register(&mac80211_rcsimple);
}

-void __exit rc80211_simple_exit(void)
+void rc80211_simple_exit(void)
{
ieee80211_rate_control_unregister(&mac80211_rcsimple);
}
--

To: Sam Ravnborg <sam@...>
Cc: netdev <netdev@...>, John W. Linville <linville@...>, David S. Miller <davem@...>, linux-wireless <linux-wireless@...>
Date: Friday, February 1, 2008 - 8:07 am

from the function ieee80211_init() to the function .exit.text:rc80211_simp=
from the function ieee80211_init() to the function .exit.text:rc80211_pid_=

Previous thread: oops with ipcomp by Beschorner Daniel on Friday, February 1, 2008 - 6:09 am. (3 messages)

Next thread: [PATCH for 2.6.25 1/2] [NET] ucc_geth: fix module removal by Anton Vorontsov on Friday, February 1, 2008 - 9:22 am. (2 messages)