patch-2.1.37 linux/net/802/psnap.c

Next file: linux/net/802/tr.c
Previous file: linux/net/802/p8022tr.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.36/linux/net/802/psnap.c linux/net/802/psnap.c
@@ -19,6 +19,7 @@
 #include <net/psnap.h>
 #include <linux/mm.h>
 #include <linux/in.h>
+#include <linux/init.h>
 
 static struct datalink_proto *snap_list = NULL;
 static struct datalink_proto *snap_dl = NULL;		/* 802.2 DL for SNAP */
@@ -87,7 +88,7 @@
 EXPORT_SYMBOL(register_snap_client);
 EXPORT_SYMBOL(unregister_snap_client);
 
-void snap_proto_init(struct net_proto *pro)
+__initfunc(void snap_proto_init(struct net_proto *pro))
 {
 	snap_dl=register_8022_client(0xAA, snap_rcv);
 	if(snap_dl==NULL)

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