patch-2.1.37 linux/kernel/printk.c

Next file: linux/kernel/resource.c
Previous file: linux/kernel/panic.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.36/linux/kernel/printk.c linux/kernel/printk.c
@@ -25,6 +25,7 @@
 #include <linux/smp.h>
 #include <linux/smp_lock.h>
 #include <linux/console.h>
+#include <linux/init.h>
 
 #include <asm/uaccess.h>
 
@@ -261,7 +262,7 @@
  * print any messages that were printed by the kernel before the
  * console driver was initialized.
  */
-void register_console(struct console * console)
+__initfunc(void register_console(struct console * console))
 {
 	int	i,j,len;
 	int	p = log_start;

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