Skip to content

Commit 0ca14cd

Browse files
committed
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>
1 parent 3343647 commit 0ca14cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/arm/mach-omap2/omap_hwmod.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ static const struct of_device_id ti_clkctrl_match_table[] __initconst = {
715715
{ }
716716
};
717717

718-
static int _setup_clkctrl_provider(struct device_node *np)
718+
static int __init _setup_clkctrl_provider(struct device_node *np)
719719
{
720720
const __be32 *addrp;
721721
struct clkctrl_provider *provider;
@@ -743,7 +743,7 @@ static int _setup_clkctrl_provider(struct device_node *np)
743743
return 0;
744744
}
745745

746-
static int _init_clkctrl_providers(void)
746+
static int __init _init_clkctrl_providers(void)
747747
{
748748
struct device_node *np;
749749
int ret = 0;

0 commit comments

Comments
 (0)