diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-06-01 03:16:17 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1997-06-01 03:16:17 +0000 |
commit | d8d9b8f76f22b7a16a83e261e64f89ee611f49df (patch) | |
tree | 3067bc130b80d52808e6390c9fc7fc087ec1e33c /net/wanrouter | |
parent | 19c9bba94152148523ba0f7ef7cffe3d45656b11 (diff) |
Initial revision
Diffstat (limited to 'net/wanrouter')
-rw-r--r-- | net/wanrouter/.cvsignore | 1 | ||||
-rw-r--r-- | net/wanrouter/wanmain.c | 3 | ||||
-rw-r--r-- | net/wanrouter/wanproc.c | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/net/wanrouter/.cvsignore b/net/wanrouter/.cvsignore new file mode 100644 index 000000000..4671378ae --- /dev/null +++ b/net/wanrouter/.cvsignore @@ -0,0 +1 @@ +.depend diff --git a/net/wanrouter/wanmain.c b/net/wanrouter/wanmain.c index 948bf81fa..4c0042082 100644 --- a/net/wanrouter/wanmain.c +++ b/net/wanrouter/wanmain.c @@ -34,6 +34,7 @@ #include <asm/byteorder.h> /* htons(), etc. */ #include <asm/uaccess.h> /* copy_to/from_user */ #include <linux/wanrouter.h> /* WAN router API definitions */ +#include <linux/init.h> /* __initfunc et al. */ /****** Defines and Macros **************************************************/ @@ -130,7 +131,7 @@ void cleanup_module (void) #else -void wanrouter_init(void) +__initfunc(void wanrouter_init(void)) { int err = wanrouter_proc_init(); if (err) printk(KERN_ERR diff --git a/net/wanrouter/wanproc.c b/net/wanrouter/wanproc.c index ce7140db0..de207d319 100644 --- a/net/wanrouter/wanproc.c +++ b/net/wanrouter/wanproc.c @@ -23,6 +23,7 @@ #include <linux/malloc.h> /* kmalloc(), kfree() */ #include <linux/mm.h> /* verify_area(), etc. */ #include <linux/string.h> /* inline mem*, str* functions */ +#include <linux/init.h> /* __initfunc et al. */ #include <asm/segment.h> /* kernel <-> user copy */ #include <asm/byteorder.h> /* htons(), etc. */ #include <asm/uaccess.h> /* copy_to_user */ @@ -271,7 +272,7 @@ static struct proc_dir_entry proc_router_stat = * Initialize router proc interface. */ -int wanrouter_proc_init (void) +__initfunc(int wanrouter_proc_init (void)) { int err = proc_register(&proc_net, &proc_router); |