Skip to contentSkip to conversation

mac80211 rate control: fix section mismatch

PATCH In review Johannes Berg 2 participants 2 messages Feb 1, 2008 mac80211

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 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.

---
 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);
 }