powerpc: Correct annotations of pmu registration functions

This fixes the following warning:
WARNING: arch/powerpc/kernel/built-in.o(.text+0x29768): Section mismatch in reference from the function .register_power_pmu() to the function .cpuinit.text:.power_pmu_notifier()
The function .register_power_pmu() references
the function __cpuinit .power_pmu_notifier().
This is often because .register_power_pmu lacks a __cpuinit
annotation or the annotation of .power_pmu_notifier is wrong.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
此提交包含在:
Dmitry Eremin-Solenikov
2011-06-29 04:54:00 +00:00
提交者 Benjamin Herrenschmidt
父節點 0e0ebdb9c2
當前提交 77c2342a57
共有 8 個檔案被更改,包括 8 行新增8 行删除

查看文件

@@ -535,7 +535,7 @@ static struct power_pmu power6_pmu = {
.cache_events = &power6_cache_events,
};
static int init_power6_pmu(void)
static int __init init_power6_pmu(void)
{
if (!cur_cpu_spec->oprofile_cpu_type ||
strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/power6"))