Search Linux Wireless

[PATCH] mac80211 rate control: fix section mismatch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <johannes@xxxxxxxxxxxxxxxx>
---
 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);
 }


-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux