Commit 09f7709f4929666006931f1d4efc498a6d419bbc

Authored by Daniel Lezcano
Committed by David S. Miller
1 parent 69567d0b63

[IPV6]: fix section mismatch warnings

Removed useless and buggy __exit section in the different
ipv6 subsystems. Otherwise they will be called inside an
init section during rollbacking in case of an error in the
protocol initialization.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 5 changed files with 5 additions and 5 deletions Side-by-side Diff

... ... @@ -4223,7 +4223,7 @@
4223 4223 return err;
4224 4224 }
4225 4225  
4226   -void __exit addrconf_cleanup(void)
  4226 +void addrconf_cleanup(void)
4227 4227 {
4228 4228 struct net_device *dev;
4229 4229 struct inet6_ifaddr *ifa;
... ... @@ -1321,7 +1321,7 @@
1321 1321 return ret;
1322 1322 }
1323 1323  
1324   -void __exit rawv6_exit(void)
  1324 +void rawv6_exit(void)
1325 1325 {
1326 1326 inet6_unregister_protosw(&rawv6_protosw);
1327 1327 }
... ... @@ -2193,7 +2193,7 @@
2193 2193 goto out;
2194 2194 }
2195 2195  
2196   -void __exit tcpv6_exit(void)
  2196 +void tcpv6_exit(void)
2197 2197 {
2198 2198 sock_release(tcp6_socket);
2199 2199 inet6_unregister_protosw(&tcpv6_protosw);
... ... @@ -1035,7 +1035,7 @@
1035 1035 goto out;
1036 1036 }
1037 1037  
1038   -void __exit udpv6_exit(void)
  1038 +void udpv6_exit(void)
1039 1039 {
1040 1040 inet6_unregister_protosw(&udpv6_protosw);
1041 1041 inet6_del_protocol(&udpv6_protocol, IPPROTO_UDP);
... ... @@ -96,7 +96,7 @@
96 96 goto out;
97 97 }
98 98  
99   -void __exit udplitev6_exit(void)
  99 +void udplitev6_exit(void)
100 100 {
101 101 inet6_unregister_protosw(&udplite6_protosw);
102 102 inet6_del_protocol(&udplitev6_protocol, IPPROTO_UDPLITE);