Skip to contentSkip to conversation

esp: fix section mismatch warning

PATCH New Randy Dunlap 1 participant 1 message Oct 8, 2008 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

cc Andrew J. Robinson <[email protected]>
---
 drivers/char/esp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/esp.c +1 -1
@@ -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);