]> err.no Git - linux-2.6/commitdiff
[ARM] 2944/1: GCC 4 mx1ads serial driver compile fix
authorVincent Sanders <vince@kyllikki.org>
Sat, 1 Oct 2005 21:56:34 +0000 (22:56 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 1 Oct 2005 21:56:34 +0000 (22:56 +0100)
Patch from Vincent Sanders

When building the mx1ads ARM platforms the serial driver fails to compile
with GCC 4.01 due to extern/static ambiguity.

Signed-off-by: Vincent Sanders <vince@arm.linux.org.uk>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/serial/imx.c

index 4c985e6b3784b0b611413c74deba61a98c086997..4e1e80adaf11f4baae5d24e42dcfaaf1be2e26b7 100644 (file)
@@ -860,7 +860,7 @@ imx_console_setup(struct console *co, char *options)
        return uart_set_options(&sport->port, co, baud, parity, bits, flow);
 }
 
-extern struct uart_driver imx_reg;
+static struct uart_driver imx_reg;
 static struct console imx_console = {
        .name           = "ttySMX",
        .write          = imx_console_write,