patch-2.1.36 linux/drivers/net/ppp.c

Next file: linux/drivers/net/pt.c
Previous file: linux/drivers/net/plip.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.35/linux/drivers/net/ppp.c linux/drivers/net/ppp.c
@@ -85,6 +85,7 @@
 #include <linux/skbuff.h>
 #include <linux/inet.h>
 #include <linux/ioctl.h>
+#include <linux/init.h>
 
 typedef struct sk_buff	     sk_buff;
 #define skb_data(skb)	     ((__u8 *) (skb)->data)
@@ -334,8 +335,8 @@
  * accessing the ppp protocol.
  */
 
-static int
-ppp_first_time (void)
+__initfunc(static int
+ppp_first_time (void))
 {
 	static struct tty_ldisc	ppp_ldisc;
 	int    status;

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