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

Next file: linux/net/wanrouter/wanproc.c
Previous file: linux/net/unix/af_unix.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.36/linux/net/wanrouter/wanmain.c linux/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 @@
 
 #else
 
-void wanrouter_init(void)
+__initfunc(void wanrouter_init(void))
 {
 	int err = wanrouter_proc_init();
 	if (err) printk(KERN_ERR

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