patch-2.4.0-prerelease linux/net/ax25/ax25_route.c
Next file: linux/net/ax25/ax25_std_in.c
Previous file: linux/net/ax25/ax25_out.c
Back to the patch index
Back to the overall index
- Lines: 42
- Date:
Fri Dec 29 14:35:47 2000
- Orig file:
v2.4.0-test12/linux/net/ax25/ax25_route.c
- Orig date:
Mon Aug 28 21:16:05 2000
diff -u --recursive --new-file v2.4.0-test12/linux/net/ax25/ax25_route.c linux/net/ax25/ax25_route.c
@@ -41,8 +41,6 @@
* Arnaldo C. Melo s/suser/capable/
*/
-#include <linux/config.h>
-#if defined(CONFIG_AX25) || defined(CONFIG_AX25_MODULE)
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/socket.h>
@@ -64,8 +62,9 @@
#include <linux/fcntl.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
+#include <linux/init.h>
-static ax25_route *ax25_route_list = NULL;
+static ax25_route *ax25_route_list;
static ax25_route *ax25_find_route(ax25_address *, struct net_device *);
@@ -434,12 +433,10 @@
return skb;
}
-#ifdef MODULE
-
/*
* Free all memory associated with routing structures.
*/
-void ax25_rt_free(void)
+void __exit ax25_rt_free(void)
{
ax25_route *s, *ax25_rt = ax25_route_list;
@@ -453,7 +450,3 @@
kfree(s);
}
}
-
-#endif
-
-#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)