linux/arch/arm/mach-imx
Nathan Chancellor 1ec2362084 ARM: imx: Annotate imx7d_enet_init() as __init
After a recent LLVM change [1] that deduces __cold on functions that
only call cold code (such as __init functions), there is a section
mismatch warning from imx7d_enet_init(), which got moved to
.text.unlikely. as a result of that optimization:

  WARNING: modpost: vmlinux: section mismatch in reference: imx7d_enet_init+0x20 (section: .text.unlikely.) -> imx7d_enet_clk_sel (section: .init.text)

Drop the inline keyword (which does not guarantee inlining) and replace
it with __init, as imx7d_enet_init() is only called from __init code,
which clears up the warning.

Link: 6b11573b8c [1]
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
2024-09-01 15:36:35 +08:00
..
anatop.c
avic.c
common.h
cpu-imx5.c
cpu-imx25.c
cpu-imx27.c
cpu-imx31.c
cpu-imx35.c
cpu.c
cpuidle-imx5.c
cpuidle-imx6q.c
cpuidle-imx6sl.c
cpuidle-imx6sx.c
cpuidle-imx7ulp.c
cpuidle.h
crmregs-imx3.h
gpc.c
hardware.h
headsmp.S
hotplug.c
iim.h
irq-common.c
irq-common.h
Kconfig
mach-imx1.c
mach-imx6q.c
mach-imx6sl.c
mach-imx6sx.c
mach-imx6ul.c
mach-imx7d-cm4.c
mach-imx7d.c
mach-imx7ulp.c
mach-imx25.c
mach-imx27.c
mach-imx31.c
mach-imx35.c
mach-imx50.c
mach-imx51.c
mach-imx53.c
mach-imxrt.c
mach-ls1021a.c
mach-vf610.c
Makefile
mm-imx3.c
mmdc.c
mx2x.h
mx3x.h
mx27.h
mx31.h
mx35.h
mxc.h
platsmp.c
pm-imx5.c
pm-imx6.c
pm-imx7ulp.c
pm-imx25.c
pm-imx27.c
resume-imx6.S
src.c
ssi-fiq-ksym.c
ssi-fiq.S
suspend-imx6.S
suspend-imx53.S
system.c
tzic.c