diff options
author | Nathan Chancellor <natechancellor@gmail.com> | 2018-10-18 03:52:07 +0300 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2018-11-19 20:59:43 +0300 |
commit | c10b26abeb53cabc1e6271a167d3f3d396ce0218 (patch) | |
tree | 455a2f5b0f39993b1656cc0b8a207de8908963a6 /arch/arm/mach-omap2/omap-wakeupgen.c | |
parent | 651022382c7f8da46cb4872a545ee1da6d097d2a (diff) | |
download | linux-c10b26abeb53cabc1e6271a167d3f3d396ce0218.tar.xz |
ARM: OMAP2+: hwmod: Fix some section annotations
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>
Diffstat (limited to 'arch/arm/mach-omap2/omap-wakeupgen.c')
0 files changed, 0 insertions, 0 deletions