Skip to content

Commit

Permalink
NFS: exit_nfs_v4() shouldn't be an __exit function
Browse files Browse the repository at this point in the history
... yet.  Right now, init_nfs() is calling this function if an error is
encountered when loading the nfs module.  An __exit function can't be
called from one declared as __init.

Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Bryan Schumaker authored and Trond Myklebust committed Jul 17, 2012
1 parent 013448c commit bb6e071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/nfs4super.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ int __init init_nfs_v4(void)
return err;
}

void __exit exit_nfs_v4(void)
void exit_nfs_v4(void)
{
unregister_filesystem(&nfs4_fs_type);
nfs4_unregister_sysctl();
Expand Down

0 comments on commit bb6e071

Please sign in to comment.