ieee80211: fix section mismatch warning
Subsystems (3)
PATCH 1/1 ieee80211: fix section mismatch warning
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.
---
With this patch my allyesconfig build on x86 (64 bit) is section mismatch clean in net/
Sam
net/mac80211/rc80211_pid_algo.c +1 -1
@@ -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); }
net/mac80211/rc80211_simple.c +1 -1
@@ -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); }
Quoted 6 lines · Sam Ravnborg
Fix the following warnings:
WARNING: net/built-in.o(.init.text+0xd6c0): Section mismatch in reference from the functionieee80211_init()to the function .exit.text:rc80211_simple_exit()
WARNING: net/built-in.o(.init.text+0xd6c5): Section mismatch in reference from the functionieee80211_init()to the function .exit.text:rc80211_pid_exit()The fix was simple - I just did as modpost told me and removed the wrong
__exitannotation ofrc80211_simple_exitandrc80211_pid_exit.
Heh, I just sent the same patch.
Quoted 1 line
Signed-off-by Sam Ravnborg <[email protected]>
Quoted 37 lines
Cc Johannes Berg <[email protected]>Cc John W. Linville <[email protected]>Cc David S. Miller <[email protected]>---
With this patch my allyesconfig build on x86 (64 bit) is section mismatch clean in
net/Sam
net/mac80211/rc80211_pid_algo.c +1
-1@@ -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); }net/mac80211/rc80211_simple.c +1
-1@@ -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); }