diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-06-29 00:54:00 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-07-19 01:12:40 -0400 |
commit | 77c2342a578c11f22a1003e641f50d138dd9833a (patch) | |
tree | 65a67c30f51063f7b06ec3c810276687c6c3c65b /arch/powerpc/kernel/power5+-pmu.c | |
parent | 0e0ebdb9c2ba7b56a82ba36d29ab3d8cb99de9e7 (diff) |
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>
Diffstat (limited to 'arch/powerpc/kernel/power5+-pmu.c')
-rw-r--r-- | arch/powerpc/kernel/power5+-pmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/power5+-pmu.c b/arch/powerpc/kernel/power5+-pmu.c index eca0ac595cb6..23aaadbc729c 100644 --- a/arch/powerpc/kernel/power5+-pmu.c +++ b/arch/powerpc/kernel/power5+-pmu.c | |||
@@ -672,7 +672,7 @@ static struct power_pmu power5p_pmu = { | |||
672 | .cache_events = &power5p_cache_events, | 672 | .cache_events = &power5p_cache_events, |
673 | }; | 673 | }; |
674 | 674 | ||
675 | static int init_power5p_pmu(void) | 675 | static int __init init_power5p_pmu(void) |
676 | { | 676 | { |
677 | if (!cur_cpu_spec->oprofile_cpu_type || | 677 | if (!cur_cpu_spec->oprofile_cpu_type || |
678 | (strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/power5+") | 678 | (strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/power5+") |