CIFS: Remove __exit mark from cifs_exit_dns_resolver()
authorDavid Howells <dhowells@redhat.com>
Fri, 30 Jul 2010 14:25:19 +0000 (15:25 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 31 Jul 2010 01:56:09 +0000 (18:56 -0700)
Remove the __exit mark from cifs_exit_dns_resolver() as it's called by the
module init routine in case of error, and so may have been discarded during
linkage.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/cifs/dns_resolve.c
fs/cifs/dns_resolve.h

index 49315cbf742d7ab22876b69349b6441723d850b7..853a968e82d74731b0c93083b238bca1ef5c96a1 100644 (file)
@@ -227,7 +227,7 @@ failed_put_cred:
        return ret;
 }
 
-void __exit cifs_exit_dns_resolver(void)
+void cifs_exit_dns_resolver(void)
 {
        key_revoke(dns_resolver_cache->thread_keyring);
        unregister_key_type(&key_type_dns_resolver);
index 26b9eaa9f5ee5898ae4241412e4127512fc95ec4..5d7f291df162731bb58abc124242211a88c0ad37 100644 (file)
@@ -25,7 +25,7 @@
 
 #ifdef __KERNEL__
 extern int __init cifs_init_dns_resolver(void);
-extern void __exit cifs_exit_dns_resolver(void);
+extern void cifs_exit_dns_resolver(void);
 extern int dns_resolve_server_name_to_ip(const char *unc, char **ip_addr);
 #endif /* KERNEL */