Skip to content

Commit

Permalink
CIFS: Remove __exit mark from cifs_exit_dns_resolver()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Jeff Layton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
dhowells authored and torvalds committed Jul 31, 2010
1 parent a2dccdb commit 51c20fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fs/cifs/dns_resolve.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ int __init cifs_init_dns_resolver(void)
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);
Expand Down
2 changes: 1 addition & 1 deletion fs/cifs/dns_resolve.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit 51c20fc

Please sign in to comment.