Skip to content

Commit

Permalink
sn_console section mismatch warning
Browse files Browse the repository at this point in the history
Do not mark sn_sal_console_setup as __init since it's referenced from
non init data structures.

Signed-off-by: Jes Sorensen <jes@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jes Sorensen authored and Linus Torvalds committed Jul 16, 2007
1 parent 98701dc commit 17e0c7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/serial/sn_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ static void __init sn_sal_switch_to_interrupts(struct sn_cons_port *port)
*/

static void sn_sal_console_write(struct console *, const char *, unsigned);
static int __init sn_sal_console_setup(struct console *, char *);
static int sn_sal_console_setup(struct console *, char *);
static struct uart_driver sal_console_uart;
extern struct tty_driver *uart_console_device(struct console *, int *);

Expand Down Expand Up @@ -1006,7 +1006,7 @@ sn_sal_console_write(struct console *co, const char *s, unsigned count)
* here so providing it is easier.
*
*/
static int __init sn_sal_console_setup(struct console *co, char *options)
static int sn_sal_console_setup(struct console *co, char *options)
{
return 0;
}
Expand Down

0 comments on commit 17e0c7c

Please sign in to comment.