mach-pcm037_eet: Fix section mismatch for eet_init_devices()
Subsystems (2)
PATCH 1/1 mach-pcm037_eet: Fix section mismatch for eet_init_devices()
This function should be marked as __init because it is used only in the init phase.
This fix the compiler warning:
LD arch/arm/mach-mx3/built-in.o
WARNING: arch/arm/mach-mx3/built-in.o(.text+0x1328): Section mismatch in reference from the function eet_init_devices() to the (unknown reference) .init.rodata:(unknown) The function eet_init_devices() references
the (unknown reference) __initconst (unknown).
This is often because eet_init_devices lacks a __initconst
annotation or the annotation of (unknown) is wrong.
--- arch/arm/mach-mx3/mach-pcm037_eet.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-mx3/mach-pcm037_eet.c +1 -1
@@ -171,7 +171,7 @@ static struct platform_device pcm037_gpio_keys_device = { }, }; -static int eet_init_devices (void ) +static int __init eet_init_devices (void ) {if (!machine_is_pcm037 () ||pcm037_variant () !=PCM037_EET )return 0 ;
Signature · 1 line
1.6.3.3
PATCH 1/1 mach-pcm037_eet: Fix section mismatch for eet_init_devices()
Quoted 11 lines · Alberto Panizzo
This function should be marked as
__initbecause it is used only in the init phase.This fix the compiler warning:
LDarch/arm/mach-mx3/built-in.o
WARNING: arch/arm/mach-mx3/built-in.o(.text+0x1328): Section mismatch in reference from the functioneet_init_devices()to the (unknown reference) .init.rodata:(unknown) The functioneet_init_devices()references
the (unknown reference)__initconst(unknown).
This is often becauseeet_init_deviceslacks a__initconst
annotation or the annotation of (unknown) is wrong.
Quoted 1 line
Signed-off-by Alberto Panizzo <[email protected]>
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |