• Jesse Barnes's avatar
    [PATCH] gcc4 fix for sn_serial.c · 2713c436
    Jesse Barnes authored
    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>
    2713c436
sn_console.c 30.5 KB