Skip to contentSkip to conversation

NFS: exit_nfs_v4() shouldn't be an __exit function

PATCH New [email protected] 1 participant 1 message Jul 17, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NFS: exit_nfs_v4() shouldn't be an __exit function

From: Bryan Schumaker <[email protected]>

... 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.

---
 fs/nfs/nfs4super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfs/nfs4super.c +1 -1
index 2af2691..59264fb 100644
@@ -352,7 +352,7 @@ out:
 	return err;
 }
 
-void __exit exit_nfs_v4(void)
+void exit_nfs_v4(void)
 {
 	unregister_filesystem(&nfs4_fs_type);
 	nfs4_unregister_sysctl();
Signature · 1 line
1.7.11.2