diff options
author | Nathan Chancellor <natechancellor@gmail.com> | 2018-10-17 17:52:07 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-20 10:08:57 +0100 |
commit | ad62a83632b923669bf5126392e1b6bc6d4be127 (patch) | |
tree | bef8dcc152f77c285321a407af082c0bf6927aab /fs/stack.c | |
parent | 1718fda55ba0e26d82446fa48056fe925a705d26 (diff) | |
download | linux-stable-ad62a83632b923669bf5126392e1b6bc6d4be127.tar.gz linux-stable-ad62a83632b923669bf5126392e1b6bc6d4be127.tar.bz2 linux-stable-ad62a83632b923669bf5126392e1b6bc6d4be127.zip |
ARM: OMAP2+: hwmod: Fix some section annotations
[ Upstream commit c10b26abeb53cabc1e6271a167d3f3d396ce0218 ]
When building the kernel with Clang, the following section mismatch
warnings appears:
WARNING: vmlinux.o(.text+0x2d398): Section mismatch in reference from
the function _setup() to the function .init.text:_setup_iclk_autoidle()
The function _setup() references
the function __init _setup_iclk_autoidle().
This is often because _setup lacks a __init
annotation or the annotation of _setup_iclk_autoidle is wrong.
WARNING: vmlinux.o(.text+0x2d3a0): Section mismatch in reference from
the function _setup() to the function .init.text:_setup_reset()
The function _setup() references
the function __init _setup_reset().
This is often because _setup lacks a __init
annotation or the annotation of _setup_reset is wrong.
WARNING: vmlinux.o(.text+0x2d408): Section mismatch in reference from
the function _setup() to the function .init.text:_setup_postsetup()
The function _setup() references
the function __init _setup_postsetup().
This is often because _setup lacks a __init
annotation or the annotation of _setup_postsetup is wrong.
_setup is used in omap_hwmod_allocate_module, which isn't marked __init
and looks like it shouldn't be, meaning to fix these warnings, those
functions must be moved out of the init section, which this patch does.
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/stack.c')
0 files changed, 0 insertions, 0 deletions