ARM: omap2: mark omap_init_rng as __init
Subsystems (3)
PATCH RESEND 1/1 ARM: omap2: mark omap_init_rng as __init
I found this section mismatch when building with an older compiler release:
WARNING: vmlinux.o(.text+0x3051c): Section mismatch in reference from the function omap_init_rng() to the function .init.text:omap_device_build()
Obviously this one function should be __init as well. Normally we don't get a warning as the function gets inlined into its caller.
---
Originally submitted on Dec 16. Tony, could you pick it up for v4.12? We haven't started merging stuff yet, and I forgot to apply it earlier but want to get it out of my backlog.
--- arch/arm/mach-omap2/devices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-omap2/devices.c +1 -1
@@ -121,7 +121,7 @@ static inline void omap_init_mcspi(void) {}* * Bind the RNG hwmod to the RNG omap_device. No return value. */ -static void omap_init_rng (void ) +static void __init omap_init_rng (void ) {struct omap_hwmod *oh;struct platform_device *pdev;
Signature · 1 line
2.9.0
Tony Lindgren
maintainerQuoted 9 lines · Arnd Bergmann
I found this section mismatch when building with an older compiler release:
WARNING:
vmlinux.o(.text+0x3051c): Section mismatch in reference from the functionomap_init_rng()to the function .init.text:omap_device_build()Obviously this one function should be
__initas well. Normally we don't get a warning as the function gets inlined into its caller.
Quoted 6 lines
Signed-off-by Arnd Bergmann <[email protected]>Acked-by Tony Lindgren <[email protected]>---
Originally submitted on Dec 16. Tony, could you pick it up for v4.12? We haven't started merging stuff yet, and I forgot to apply it earlier but want to get it out of my backlog.
OK will pick it up thanks.
Tony
Quoted 20 lines
--- arch/arm/mach-omap2/devices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-omap2/devices.c +1
-1@@ -121,7 +121,7 @@ static inline void omap_init_mcspi(void) {}* * Bind the RNG hwmod to the RNG omap_device. No return value. */ -static void omap_init_rng (void ) +static void __init omap_init_rng (void ) {struct omap_hwmod *oh;struct platform_device *pdev;Signature · 1 line
2.9.0