Skip to contentSkip to conversation

Section mismatches in mtx1_defconfig

DISCUSSION Ralf Baechle 2 participants 2 messages Jun 21, 2011 MIPS

lore
Share & tools
lore
#0 lore raw

WARNING: drivers/watchdog/built-in.o(.data+0x24): Section mismatch in reference from the variable mtx1_wdt to the function .devinit.text:mtx1_wdt_probe() The variable mtx1_wdt references
the function __devinit mtx1_wdt_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: drivers/watchdog/built-in.o(.data+0x28): Section mismatch in reference from the variable mtx1_wdt to the function .devexit.text:mtx1_wdt_remove() The variable mtx1_wdt references
the function __devexit mtx1_wdt_remove()
If the reference is valid then annotate the
variable with __exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: drivers/built-in.o(.data+0x4ec4): Section mismatch in reference from the variable mtx1_wdt to the function .devinit.text:mtx1_wdt_probe() The variable mtx1_wdt references
the function __devinit mtx1_wdt_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: drivers/built-in.o(.data+0x4ec8): Section mismatch in reference from the variable mtx1_wdt to the function .devexit.text:mtx1_wdt_remove() The variable mtx1_wdt references
the function __devexit mtx1_wdt_remove()
If the reference is valid then annotate the
variable with __exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

#1 lore raw

Hello Ralf,

Quoted 24 lines · On Tuesday 21 June 2011 16:59:42 Ralf Baechle wrote:

WARNING: drivers/watchdog/built-in.o(.data+0x24): Section mismatch in reference from the variable mtx1_wdt to the function .devinit.text:mtx1_wdt_probe() The variable mtx1_wdt references the function __devinit mtx1_wdt_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: drivers/watchdog/built-in.o(.data+0x28): Section mismatch in reference from the variable mtx1_wdt to the function .devexit.text:mtx1_wdt_remove() The variable mtx1_wdt references the function __devexit mtx1_wdt_remove()
If the reference is valid then annotate the
variable with __exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: drivers/built-in.o(.data+0x4ec4): Section mismatch in reference from the variable mtx1_wdt to the function .devinit.text:mtx1_wdt_probe() The variable mtx1_wdt references
the function __devinit mtx1_wdt_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

Quoted 7 lines

WARNING: drivers/built-in.o(.data+0x4ec8): Section mismatch in reference from the variable mtx1_wdt to the function .devexit.text:mtx1_wdt_remove() The variable mtx1_wdt references
the function __devexit mtx1_wdt_remove()
If the reference is valid then annotate the
variable with __exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

Fixed with [PATCH 4/5 v3] WATCHDOG: mtx1-wdt: fix section mismatch --
Florian