diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-09-14 08:50:58 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2018-01-22 06:39:36 -0500 |
commit | 0ca14cdea789f70c4dc7ef5844aad52cb9675aee (patch) | |
tree | e703985539271b7f84ebfd5c87cabc8596e7bc0e /arch/arm/mach-omap2/omap_hwmod.c | |
parent | 3343647813fdf0f2409fbf5816ee3e0622168079 (diff) |
ARM: omap: hwmod: fix section mismatch warnings
Older compilers choose not to inline _setup_clkctrl_provider(),
leading to a harmless warning:
WARNING: vmlinux.o(.text+0x27b34): Section mismatch in reference from the function _setup_clkctrl_provider() to the function .init.text:memblock_virt_alloc_try_nid()
The function _setup_clkctrl_provider() references
the function __init memblock_virt_alloc_try_nid().
This is often because _setup_clkctrl_provider lacks a __init
annotation or the annotation of memblock_virt_alloc_try_nid is wrong.
This annotates it as __init as well, which lets the linker
see that it is actually correct.
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod.c')
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index 5eff27e4f24b..1cfe9aff4ac7 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c | |||
@@ -715,7 +715,7 @@ static const struct of_device_id ti_clkctrl_match_table[] __initconst = { | |||
715 | { } | 715 | { } |
716 | }; | 716 | }; |
717 | 717 | ||
718 | static int _setup_clkctrl_provider(struct device_node *np) | 718 | static int __init _setup_clkctrl_provider(struct device_node *np) |
719 | { | 719 | { |
720 | const __be32 *addrp; | 720 | const __be32 *addrp; |
721 | struct clkctrl_provider *provider; | 721 | struct clkctrl_provider *provider; |
@@ -743,7 +743,7 @@ static int _setup_clkctrl_provider(struct device_node *np) | |||
743 | return 0; | 743 | return 0; |
744 | } | 744 | } |
745 | 745 | ||
746 | static int _init_clkctrl_providers(void) | 746 | static int __init _init_clkctrl_providers(void) |
747 | { | 747 | { |
748 | struct device_node *np; | 748 | struct device_node *np; |
749 | int ret = 0; | 749 | int ret = 0; |