When the rate control algorithms are built-in, their exit
functions can be called from mac80211's init function so
they cannot be marked __exit.
Signed-off-by: Johannes Berg <[email protected]>
---
net/mac80211/rc80211_pid_algo.c | 2 +-
net/mac80211/rc80211_simple.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--- everything.orig/net/mac80211/rc80211_pid_algo.c 2008-01-31 19:20:14.932284778 +0100
+++ everything/net/mac80211/rc80211_pid_algo.c 2008-01-31 19:20:37.912263836 +0100
@@ -544,7 +544,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);
}
--- everything.orig/net/mac80211/rc80211_simple.c 2008-01-31 19:20:41.342267959 +0100
+++ everything/net/mac80211/rc80211_simple.c 2008-01-31 19:20:52.632267796 +0100
@@ -381,7 +381,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);
}
On Thu, 31 Jan 2008 19:31:57 +0100
Johannes Berg <[email protected]> wrote:
> When the rate control algorithms are built-in, their exit
> functions can be called from mac80211's init function so
> they cannot be marked __exit.
>
> Signed-off-by: Johannes Berg <[email protected]>
Acked-by: Stefano Brivio <[email protected]>
--
Ciao
Stefano