Skip to contentSkip to conversation

esp: fix section mismatch warning

PATCH In review [email protected] 2 participants 2 messages Mar 4, 2009 – Apr 3, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 8/15 esp: fix section mismatch warning

From: Randy Dunlap <[email protected]>

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.

---

 drivers/char/esp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/esp.c renamed from drivers/char/esp.c~esp-fix-section-mismatch-warning +1 -1
diff -puN drivers/char/esp.c~esp-fix-section-mismatch-warning drivers/char/esp.c
@@ -2258,7 +2258,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);

_

maintainer
#1 lore raw

drivers/char/esp.c

Quoted 27 lines · On Wed, 2009-03-04 at 12:06 -0800, [email protected] wrote:

From: Randy Dunlap <[email protected]>

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.

---

 drivers/char/esp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/char/esp.c~esp-fix-section-mismatch-warning drivers/char/esp.c

drivers/char/esp.c renamed from drivers/char/esp.c~esp-fix-section-mismatch-warning +0 -0

That's not a SCSI driver (so linux-scsi isn't the right list). esp is some type of strange serial driver.

James