* [PATCH] remove compile warning from serial console initcall
@ 2003-03-08 23:06 Martin J. Bligh
0 siblings, 0 replies; only message in thread
From: Martin J. Bligh @ 2003-03-08 23:06 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Andrew Morton, linux-kernel
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-08 22:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-08 23:06 [PATCH] remove compile warning from serial console initcall Martin J. Bligh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®