]> Git Repo - linux.git/commitdiff
esp: fix section mismatch warning
authorRandy Dunlap <[email protected]>
Tue, 7 Apr 2009 02:00:26 +0000 (19:00 -0700)
committerLinus Torvalds <[email protected]>
Tue, 7 Apr 2009 15:31:03 +0000 (08:31 -0700)
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 <[email protected]>
Cc: Andrew J. Robinson <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/char/esp.c

index 45ec263ec012c504080409a2cb399aba7808b8e2..a5c59fc2b0ff44335bf61d94ba33b039e6103ac5 100644 (file)
@@ -2258,7 +2258,7 @@ static int esp_open(struct tty_struct *tty, struct file *filp)
  * 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);
This page took 0.061594 seconds and 4 git commands to generate.