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. _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev