[parisc-linux] pdc_console_die: undefined reference to `log_end'

Arnaldo Carvalho de Melo acme@conectiva.com.br
Fri, 18 Jul 2003 01:33:00 -0300


Second try:

arch/parisc/kernel/built-in.o: In function `pdc_console_die':
arch/parisc/kernel/built-in.o(.text.pdc_console_die+0x4c): undefined reference to `log_end'
arch/parisc/kernel/built-in.o: In function `pdc_console_restart':
arch/parisc/kernel/built-in.o(.text.pdc_console_restart+0x44): undefined reference to `log_end'
make: ** [.tmp_vmlinux1] Erro 139

Problem is:

===== kernel/printk.c 1.26 vs edited =====
--- 1.26/kernel/printk.c	Sat Jun 28 03:20:35 2003
+++ edited/kernel/printk.c	Fri Jul 18 01:29:15 2003
@@ -77,7 +77,7 @@
  */
 static unsigned long log_start;			/* Index into log_buf: next char to be read by syslog() */
 static unsigned long con_start;			/* Index into log_buf: next char to be sent to consoles */
-static unsigned long log_end;			/* Index into log_buf: most-recently-written-char + 1 */
+unsigned long log_end;			/* Index into log_buf: most-recently-written-char + 1 */
 static unsigned long logged_chars;		/* Number of chars produced since last read+clear operation */
 
 struct console_cmdline console_cmdline[MAX_CMDLINECONSOLES];