mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 10:00:49 +01:00
After commit 7cbd631d4dec ("cpuidle: pseries: Fixup CEDE0 latency only
for POWER10 onwards"), pseries_idle_probe() is no longer inlined when
compiling with clang, which causes a modpost warning:
WARNING: modpost: vmlinux.o(.text+0xc86a54): Section mismatch in
reference from the function pseries_idle_probe() to the function
.init.text:fixup_cede0_latency()
The function pseries_idle_probe() references
the function __init fixup_cede0_latency().
This is often because pseries_idle_probe lacks a __init
annotation or the annotation of fixup_cede0_latency is wrong.
pseries_idle_probe() is a non-init function, which calls
fixup_cede0_latency(), which is an init function, explaining the
mismatch. pseries_idle_probe() is only called from
pseries_processor_idle_init(), which is an init function, so mark
pseries_idle_probe() as __init so there is no more warning.
Fixes:
|
||
|---|---|---|
| .. | ||
| governors | ||
| coupled.c | ||
| cpuidle-arm.c | ||
| cpuidle-at91.c | ||
| cpuidle-big_little.c | ||
| cpuidle-calxeda.c | ||
| cpuidle-clps711x.c | ||
| cpuidle-cps.c | ||
| cpuidle-exynos.c | ||
| cpuidle-haltpoll.c | ||
| cpuidle-kirkwood.c | ||
| cpuidle-mvebu-v7.c | ||
| cpuidle-powernv.c | ||
| cpuidle-psci-domain.c | ||
| cpuidle-psci.c | ||
| cpuidle-psci.h | ||
| cpuidle-pseries.c | ||
| cpuidle-qcom-spm.c | ||
| cpuidle-tegra.c | ||
| cpuidle-ux500.c | ||
| cpuidle-zynq.c | ||
| cpuidle.c | ||
| cpuidle.h | ||
| driver.c | ||
| dt_idle_states.c | ||
| dt_idle_states.h | ||
| governor.c | ||
| Kconfig | ||
| Kconfig.arm | ||
| Kconfig.mips | ||
| Kconfig.powerpc | ||
| Makefile | ||
| poll_state.c | ||
| sysfs.c | ||