omap: fix section mismatch errors
cover omap: fix section mismatch errors
Multiple section mismatches are observed with the latest master. While attempting to fix the ones listed below, I came across more instances.
The patch in this series fixes all these issues.
Though most of the changes are straight-forward, but for these (for now annotated as ___refdata):
1) arch/arm/plat-omap/cpu-omap.c
Variable omap_driver may be required beyond __init lifetime.
2) drivers/mfd/twl-core.c
Variable twl_driver is used both in __init and __exit context.
There are few more similar errors in some of the modules would submit them separately.
WARNING: vmlinux.o(.text+0x187c0): Section mismatch in reference from the function zoom_twl_gpio_setup() to the (unknown reference) .init.data:(unknown) The function zoom_twl_gpio_setup() references
the (unknown reference) __initdata (unknown).
This is often because zoom_twl_gpio_setup lacks a __initdata
annotation or the annotation of (unknown) is wrong.
WARNING: vmlinux.o(.text+0x189b0): Section mismatch in reference from the function cm_t35_twl_gpio_setup() to the (unknown reference) .init.data:(unknown) The function cm_t35_twl_gpio_setup() references
the (unknown reference) __initdata (unknown).
This is often because cm_t35_twl_gpio_setup lacks a __initdata
annotation or the annotation of (unknown) is wrong.
WARNING: vmlinux.o(.data+0x19e38): Section mismatch in reference from the variable h4_config to the (unknown reference) .init.data:(unknown) The variable h4_config references
the (unknown reference) __initdata (unknown)
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
WARNING: vmlinux.o(.data+0x1a670): Section mismatch in reference from the variable sdp2430_config to the (unknown reference) .init.data:(unknown) The variable sdp2430_config references
the (unknown reference) __initdata (unknown)
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
WARNING: vmlinux.o(.data+0x1ac50): Section mismatch in reference from the variable apollon_config to the (unknown reference) .init.data:(unknown) The variable apollon_config references
the (unknown reference) __initdata (unknown)
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
WARNING: vmlinux.o(.data+0x2e378): Section mismatch in reference from the variable omap_driver to the function .init.text:omap_cpu_init() The variable omap_driver references
the function __init omap_cpu_init()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
WARNING: vmlinux.o(.data+0x1b9dcc): Section mismatch in reference from the variable twl_driver to the function .init.text:twl_probe() The variable twl_driver references
the function __init twl_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
Sanjeev Premi (1):
omap: fix section mismatch errors
arch/arm/mach-omap2/board-2430sdp.c | 2 +- arch/arm/mach-omap2/board-apollon.c | 2 +- arch/arm/mach-omap2/board-cm-t35.c | 8 ++++---- arch/arm/mach-omap2/board-h4.c | 2 +- arch/arm/mach-omap2/board-zoom-peripherals.c | 18 +++++++++--------- arch/arm/plat-omap/cpu-omap.c | 2 +- drivers/mfd/twl-core.c | 2 +- 7 files changed, 18 insertions(+), 18 deletions(-)
Quoted 97 lines
-----Original Message-----
From: Premi, Sanjeev
Sent: Monday, August 16, 2010 9:01 PM
To: [email protected]
Cc: Premi, Sanjeev
Subject: [PATCH 0/1] omap: fix section mismatch errorsMultiple section mismatches are observed with the latest master. While attempting to fix the ones listed below, I came across more instances.
The patch in this series fixes all these issues.
Though most of the changes are straight-forward, but for these (for now annotated as
___refdata):1)
arch/arm/plat-omap/cpu-omap.c
Variableomap_drivermay be required beyond__initlifetime.2)
drivers/mfd/twl-core.c
Variabletwl_driveris used both in__initand__exitcontext.There are few more similar errors in some of the modules would submit them separately.
WARNING:
vmlinux.o(.text+0x187c0): Section mismatch in reference from the functionzoom_twl_gpio_setup()to the (unknown reference) .init.data:(unknown)
The functionzoom_twl_gpio_setup()references
the (unknown reference)__initdata(unknown).
This is often becausezoom_twl_gpio_setuplacks a__initdataannotation or the annotation of (unknown) is wrong.WARNING:
vmlinux.o(.text+0x189b0): Section mismatch in reference from the functioncm_t35_twl_gpio_setup()to the (unknown reference) .init.data:(unknown)
The functioncm_t35_twl_gpio_setup()references
the (unknown reference)__initdata(unknown).
This is often becausecm_t35_twl_gpio_setuplacks a__initdataannotation or the annotation of (unknown) is wrong.WARNING:
vmlinux.o(.data+0x19e38): Section mismatch in reference from the variableh4_configto the (unknown reference) .init.data:(unknown)
The variableh4_configreferences
the (unknown reference)__initdata(unknown)
If the reference is valid then annotate the
variable with __init* or__refdata(seelinux/init.h) or name the variable:*_template,*_timer,*_sht,*_ops,*_probe,*_probe_one,*_console,WARNING:
vmlinux.o(.data+0x1a670): Section mismatch in reference from the variablesdp2430_configto the (unknown reference) .init.data:(unknown)
The variablesdp2430_configreferences
the (unknown reference)__initdata(unknown)
If the reference is valid then annotate the
variable with __init* or__refdata(seelinux/init.h) or name the variable:*_template,*_timer,*_sht,*_ops,*_probe,*_probe_one,*_console,WARNING:
vmlinux.o(.data+0x1ac50): Section mismatch in reference from the variableapollon_configto the (unknown reference) .init.data:(unknown)
The variableapollon_configreferences
the (unknown reference)__initdata(unknown)
If the reference is valid then annotate the
variable with __init* or__refdata(seelinux/init.h) or name the variable:*_template,*_timer,*_sht,*_ops,*_probe,*_probe_one,*_console,WARNING:
vmlinux.o(.data+0x2e378): Section mismatch in reference from the variableomap_driverto the function .init.text:omap_cpu_init()
The variableomap_driverreferences
the function__initomap_cpu_init()
If the reference is valid then annotate the
variable with __init* or__refdata(seelinux/init.h) or name the variable:*_template,*_timer,*_sht,*_ops,*_probe,*_probe_one,*_console,WARNING:
vmlinux.o(.data+0x1b9dcc): Section mismatch in reference from the variabletwl_driverto the function .init.text:twl_probe()
The variabletwl_driverreferences
the function__inittwl_probe()
If the reference is valid then annotate the
variable with __init* or__refdata(seelinux/init.h) or name the variable:*_template,*_timer,*_sht,*_ops,*_probe,*_probe_one,*_console,Sanjeev Premi (1):
omap: fix section mismatch errors
Quoted 11 lines
arch/arm/mach-omap2/board-2430sdp.c | 2 +- arch/arm/mach-omap2/board-apollon.c | 2 +- arch/arm/mach-omap2/board-cm-t35.c | 8 ++++---- arch/arm/mach-omap2/board-h4.c | 2 +- arch/arm/mach-omap2/board-zoom-peripherals.c | 18 +++++++++--------- arch/arm/plat-omap/cpu-omap.c | 2 +- drivers/mfd/twl-core.c | 2 +- 7 files changed, 18 insertions(+), 18 deletions(-)
Hi Tony,
Did you look at this as well?
Best regards,
Sanjeev