Skip to content

Commit

Permalink
ARM: OMAP2+: mark omap_init_rng as __init
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[tony@atomide.com: formatted error message a bit]
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Arnd Bergmann authored and Tony Lindgren committed Mar 28, 2017
1 parent 49e9e61 commit f0e6876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f0e6876

Please sign in to comment.