Commit 2713c436 authored by Jesse Barnes's avatar Jesse Barnes Committed by Linus Torvalds

[PATCH] gcc4 fix for sn_serial.c

The sal_console and sal_console_uart structures have a circular
relationship since they both initialize member fields to pointers of one
another.  The current code forward declares sal_console_uart as extern so
that sal_console can take its address, but gcc4 complains about this since
the real definition of sal_console_uart is marked 'static'.  This patch
just removes the static qualifier from sal_console_uart to avoid the
inconsistency.
Signed-off-by: default avatarJesse Barnes <jbarnes@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 98fc640f
......@@ -801,7 +801,7 @@ static struct console sal_console = {
#define SAL_CONSOLE &sal_console
static struct uart_driver sal_console_uart = {
struct uart_driver sal_console_uart = {
.owner = THIS_MODULE,
.driver_name = "sn_console",
.dev_name = DEVICE_NAME,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment