* [PATCH] serial: fix compiling warning about putc
@ 2007-10-30 5:56 Yinghai Lu
0 siblings, 0 replies; only message in thread
From: Yinghai Lu @ 2007-10-30 5:56 UTC (permalink / raw)
To: Andrew Morton, Russell King; +Cc: LKML
[PATCH] serial: fix compiling warning about putc
CC drivers/serial/8250_early.o
drivers/serial/8250_early.c:80: warning: conflicting types for built-in function ‘putc’
Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
diff --git a/drivers/serial/8250_early.c b/drivers/serial/8250_early.c
index 4d4c9f0..1f16de7 100644
--- a/drivers/serial/8250_early.c
+++ b/drivers/serial/8250_early.c
@@ -76,7 +76,7 @@ static void __init wait_for_xmitr(struct uart_port *port)
}
}
-static void __init putc(struct uart_port *port, int c)
+static void __init serial_putc(struct uart_port *port, int c)
{
wait_for_xmitr(port);
serial_out(port, UART_TX, c);
@@ -91,7 +91,7 @@ static void __init early_serial8250_write(struct console *console, const char *s
ier = serial_in(port, UART_IER);
serial_out(port, UART_IER, 0);
- uart_console_write(port, s, count, putc);
+ uart_console_write(port, s, count, serial_putc);
/* Wait for transmitter to become empty and restore the IER */
wait_for_xmitr(port);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-30 5:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-30 5:56 [PATCH] serial: fix compiling warning about putc Yinghai Lu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.