diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-06-29 04:54:00 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-07-19 15:12:40 +1000 |
commit | 77c2342a578c11f22a1003e641f50d138dd9833a (patch) | |
tree | 65a67c30f51063f7b06ec3c810276687c6c3c65b /arch/powerpc/kernel/perf_event.c | |
parent | 0e0ebdb9c2ba7b56a82ba36d29ab3d8cb99de9e7 (diff) | |
download | op-kernel-dev-77c2342a578c11f22a1003e641f50d138dd9833a.zip op-kernel-dev-77c2342a578c11f22a1003e641f50d138dd9833a.tar.gz |
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/perf_event.c')
-rw-r--r-- | arch/powerpc/kernel/perf_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/perf_event.c b/arch/powerpc/kernel/perf_event.c index 822f630..31ab78f 100644 --- a/arch/powerpc/kernel/perf_event.c +++ b/arch/powerpc/kernel/perf_event.c @@ -1408,7 +1408,7 @@ power_pmu_notifier(struct notifier_block *self, unsigned long action, void *hcpu return NOTIFY_OK; } -int register_power_pmu(struct power_pmu *pmu) +int __cpuinit register_power_pmu(struct power_pmu *pmu) { if (ppmu) return -EBUSY; /* something's already registered */ |