From: Vincent Sanders Date: Sat, 1 Oct 2005 21:56:34 +0000 (+0100) Subject: [ARM] 2944/1: GCC 4 mx1ads serial driver compile fix X-Git-Tag: v2.6.14-rc4~89^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f4426dde2be352aabc326539eccc726cea2d98c;p=linux-2.6 [ARM] 2944/1: GCC 4 mx1ads serial driver compile fix 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 Signed-off-by: Russell King --- diff --git a/drivers/serial/imx.c b/drivers/serial/imx.c index 4c985e6b37..4e1e80adaf 100644 --- a/drivers/serial/imx.c +++ b/drivers/serial/imx.c @@ -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,