]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Jan 2011 23:07:38 +0000 (18:07 -0500)
commit 51c20fcced5badee0e2021c6c89f44aa3cbd72aa upstream.

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>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/cifs/dns_resolve.c
fs/cifs/dns_resolve.h

index 4a4bbde3a80bd1e48f46ede3702a57a51cdcafde..56316ae8367fbbd86ab4c733d9aa754215770171 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 */