patch-2.1.37 linux/mm/swap.c

Next file: linux/mm/swap_state.c
Previous file: linux/mm/slab.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.36/linux/mm/swap.c linux/mm/swap.c
@@ -23,6 +23,7 @@
 #include <linux/fs.h>
 #include <linux/swapctl.h>
 #include <linux/pagemap.h>
+#include <linux/init.h>
 
 #include <asm/dma.h>
 #include <asm/system.h> /* for cli()/sti() */
@@ -67,7 +68,7 @@
 /* General swap control */
 
 /* Parse the kernel command line "swap=" option at load time: */
-void swap_setup(char *str, int *ints)
+__initfunc(void swap_setup(char *str, int *ints))
 {
 	int * swap_vars[8] = {
 		&MAX_PAGE_AGE,
@@ -87,7 +88,7 @@
 }
 
 /* Parse the kernel command line "buff=" option at load time: */
-void buff_setup(char *str, int *ints)
+__initfunc(void buff_setup(char *str, int *ints))
 {
 	int * buff_vars[6] = {
 		&MAX_BUFF_AGE,

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