lkml.org 
[lkml]   [2003]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] remove compile warning from serial console initcall
This tiny patch removes the new compiler warning from my build - 
the new console_initcall mechanism seems to require int from
console_init ... I made serial8250_console_init look like con_init

diff -urpN -X /home/fletch/.diff.exclude 900-mjb2/drivers/serial/8250.c 999-serial_fix/drivers/serial/8250.c
--- 900-mjb2/drivers/serial/8250.c Sat Mar 8 12:54:04 2003
+++ 999-serial_fix/drivers/serial/8250.c Sat Mar 8 14:48:20 2003
@@ -1982,10 +1982,11 @@ static struct console serial8250_console
.index = -1,
};

-static void __init serial8250_console_init(void)
+static int __init serial8250_console_init(void)
{
serial8250_isa_init_ports();
register_console(&serial8250_console);
+ return 0;
}
console_initcall(serial8250_console_init);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.028 / U:22.620 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site