Skip to content

Commit 51c20fc

Browse files
dhowellstorvalds
authored andcommitted
CIFS: Remove __exit mark from cifs_exit_dns_resolver()
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>
1 parent a2dccdb commit 51c20fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fs/cifs/dns_resolve.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ int __init cifs_init_dns_resolver(void)
227227
return ret;
228228
}
229229

230-
void __exit cifs_exit_dns_resolver(void)
230+
void cifs_exit_dns_resolver(void)
231231
{
232232
key_revoke(dns_resolver_cache->thread_keyring);
233233
unregister_key_type(&key_type_dns_resolver);

fs/cifs/dns_resolve.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#ifdef __KERNEL__
2727
extern int __init cifs_init_dns_resolver(void);
28-
extern void __exit cifs_exit_dns_resolver(void);
28+
extern void cifs_exit_dns_resolver(void);
2929
extern int dns_resolve_server_name_to_ip(const char *unc, char **ip_addr);
3030
#endif /* KERNEL */
3131

0 commit comments

Comments
 (0)