mac80211 rate control: fix section mismatch
Johannes Berg
maintainerPATCH 1/1 mac80211 rate control: fix section mismatch
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(-)
net/mac80211/rc80211_pid_algo.c +1 -1
@@ -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); }
net/mac80211/rc80211_simple.c +1 -1
@@ -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); }
Quoted 5 lines · On Thu, 31 Jan 2008 19:31:57 +0100 Johannes Berg <[email protected]>…
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]>
Signature · 2 lines
Ciao Stefano