* [patch] sn_console section mismatch warning
@ 2007-07-11 14:29 Jes Sorensen
0 siblings, 0 replies; only message in thread
From: Jes Sorensen @ 2007-07-11 14:29 UTC (permalink / raw)
To: akpm; +Cc: Linus Torvalds, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 86 bytes --]
Hi,
This one eliminates a link-time warning for the sn_console driver.
Cheers,
Jes
[-- Attachment #2: sn_console-link-warn.diff --]
[-- Type: text/plain, Size: 1098 bytes --]
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>
---
drivers/serial/sn_console.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: linux-2.6/drivers/serial/sn_console.c
===================================================================
--- linux-2.6.orig/drivers/serial/sn_console.c
+++ linux-2.6/drivers/serial/sn_console.c
@@ -759,7 +759,7 @@ static void __init sn_sal_switch_to_inte
*/
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 *);
@@ -1006,7 +1006,7 @@ sn_sal_console_write(struct console *co,
* 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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-11 14:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-11 14:29 [patch] sn_console section mismatch warning Jes Sorensen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox