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
..
2021-10-26 10:13:31 +01:00
2022-12-31 21:13:40 +08:00
2021-06-12 12:02:57 +08:00
2023-07-19 15:28:44 +08:00
2023-07-19 15:28:44 +08:00
2023-07-19 15:28:44 +08:00
2023-07-19 15:28:44 +08:00
2023-07-19 15:28:44 +08:00
2023-07-19 15:28:44 +08:00
2023-07-19 15:28:44 +08:00
2023-07-19 15:28:44 +08:00
2020-09-22 14:08:13 +08:00
2020-09-22 14:08:13 +08:00
2020-09-22 14:08:13 +08:00
2021-06-12 12:02:57 +08:00
2023-07-19 15:28:44 +08:00
2023-07-19 15:28:44 +08:00
2023-05-26 13:31:37 +02:00
2021-10-26 10:13:31 +01:00