struct rxrpc_transport *afs_transport;
-static int afs_init(void);
-static void afs_exit(void);
static int afs_adding_peer(struct rxrpc_peer *peer);
static void afs_discarding_peer(struct rxrpc_peer *peer);
-/* XXX late_initcall is kludgy, but the only alternative seems to create
- * a transport upon the first mount, which is worse. Or is it?
- */
-/* module_init(afs_init); */
-late_initcall(afs_init); /* must be called after net/ to create socket */
-
-module_exit(afs_exit);
MODULE_DESCRIPTION("AFS Client File System");
MODULE_AUTHOR("Red Hat, Inc.");
/*
* initialise the AFS client FS module
*/
-static int afs_init(void)
+static int __init afs_init(void)
{
int loop, ret;
return ret;
} /* end afs_init() */
+/* XXX late_initcall is kludgy, but the only alternative seems to create
+ * a transport upon the first mount, which is worse. Or is it?
+ */
+late_initcall(afs_init); /* must be called after net/ to create socket */
/*****************************************************************************/
/*
* clean up on module removal
} /* end afs_exit() */
+module_exit(afs_exit);
+
/*****************************************************************************/
/*
* notification that new peer record is being added