* [PATCH] esp: fix section mismatch warning
@ 2008-10-08 21:18 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2008-10-08 21:18 UTC (permalink / raw)
To: lkml, akpm; +Cc: arobinso
From: Randy Dunlap <randy.dunlap@oracle.com>
Not critical.
WARNING: drivers/char/esp.o(.text+0x278): Section mismatch in reference from the function show_serial_version() to the variable .init.data:serial_version
The function show_serial_version() references
the variable __initdata serial_version.
This is often because show_serial_version lacks a __initdata
annotation or the annotation of serial_version is wrong.
WARNING: drivers/char/esp.o(.text+0x27d): Section mismatch in reference from the function show_serial_version() to the variable .init.data:serial_name
The function show_serial_version() references
the variable __initdata serial_name.
This is often because show_serial_version lacks a __initdata
annotation or the annotation of serial_name is wrong.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
cc: Andrew J. Robinson <arobinso@nyx.net>
---
drivers/char/esp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- lin2627-r9g1-sections.orig/drivers/char/esp.c
+++ lin2627-r9g1-sections/drivers/char/esp.c
@@ -2249,7 +2249,7 @@ static int esp_open(struct tty_struct *t
* driver.
*/
-static void show_serial_version(void)
+static void __init show_serial_version(void)
{
printk(KERN_INFO "%s version %s (DMA %u)\n",
serial_name, serial_version, dma);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-08 21:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-08 21:18 [PATCH] esp: fix section mismatch warning Randy Dunlap
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.