ChangeSet 1.2003, 2005/03/08 16:54:08-08:00, [EMAIL PROTECTED]
[RXRPC]: Push module_{init,exit}() after function definitions.
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
main.c | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diff -Nru a/net/rxrpc/main.c b/net/rxrpc/main.c
--- a/net/rxrpc/main.c 2005-03-09 18:05:55 -08:00
+++ b/net/rxrpc/main.c 2005-03-09 18:05:55 -08:00
@@ -22,12 +22,6 @@
#include <rxrpc/message.h>
#include "internal.h"
-static int rxrpc_initialise(void);
-static void rxrpc_cleanup(void);
-
-module_init(rxrpc_initialise);
-module_exit(rxrpc_cleanup);
-
MODULE_DESCRIPTION("Rx RPC implementation");
MODULE_AUTHOR("Red Hat, Inc.");
MODULE_LICENSE("GPL");
@@ -38,7 +32,7 @@
/*
* initialise the Rx module
*/
-static int rxrpc_initialise(void)
+static int __init rxrpc_initialise(void)
{
int ret;
@@ -93,6 +87,8 @@
return ret;
} /* end rxrpc_initialise() */
+module_init(rxrpc_initialise);
+
/*****************************************************************************/
/*
* clean up the Rx module
@@ -135,6 +131,8 @@
kleave("");
} /* end rxrpc_cleanup() */
+
+module_exit(rxrpc_cleanup);
/*****************************************************************************/
/*
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html