[PATCH] powerpc: fix register_power_pmu() section mismatch warning
Paul Mackerras
paulus at samba.org
Thu May 13 10:09:23 EST 2010
On Wed, May 12, 2010 at 08:04:46PM +0200, Albert Herranz wrote:
> Add missing __cpuinit annotations to fix a bunch of warnings like the one
> shown below when building a kernel for the PowerPC architecture with
> CONFIG_DEBUG_SECTION_MISMATCH=y.
>
> WARNING: arch/powerpc/kernel/built-in.o(.text+0x11c72): Section mismatch in reference from the function register_power_pmu() to the variable .cpuinit.data:power_pmu_notifier_nb.23552
> The function register_power_pmu() references
> the variable __cpuinitdata power_pmu_notifier_nb.23552.
> This is often because register_power_pmu lacks a __cpuinitdata
> annotation or the annotation of power_pmu_notifier_nb.23552 is wrong.
Hmmm, I would think these things could be just plain __init, not
__cpuinit. They're not called on cpu hotplug events.
Paul.
More information about the Linuxppc-dev
mailing list