patch-2.1.37 linux/net/wanrouter/wanproc.c

Next file: linux/net/x25/af_x25.c
Previous file: linux/net/wanrouter/wanmain.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.36/linux/net/wanrouter/wanproc.c linux/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 @@
  *	Initialize router proc interface.
  */
 
-int wanrouter_proc_init (void)
+__initfunc(int wanrouter_proc_init (void))
 {
 	int err = proc_register(&proc_net, &proc_router);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov