patch-2.1.37 linux/kernel/panic.c

Next file: linux/kernel/printk.c
Previous file: linux/kernel/ksyms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.36/linux/kernel/panic.c linux/kernel/panic.c
@@ -15,6 +15,7 @@
 #include <linux/delay.h>
 #include <linux/smp.h>
 #include <linux/reboot.h>
+#include <linux/init.h>
 
 asmlinkage void sys_sync(void);	/* it's really int */
 extern void unblank_console(void);
@@ -22,7 +23,7 @@
 
 int panic_timeout = 0;
 
-void panic_setup(char *str, int *ints)
+__initfunc(void panic_setup(char *str, int *ints))
 {
 	if (ints[0] == 1)
 		panic_timeout = ints[1];

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