From: Nathan Lynch Date: Sun, 27 Jul 2008 05:24:51 +0000 (+1000) Subject: powerpc: register_cpu_online should be __cpuinit X-Git-Tag: v2.6.27-rc1~27^2~16 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9ba1984ead5d25c93d241e0ee43f8f6a252f60d9;p=linux-2.6-omap-h63xx.git powerpc: register_cpu_online should be __cpuinit It is called only in cpu online paths. (caught by CONFIG_DEBUG_SECTION_MISMATCH=y) Signed-off-by: Nathan Lynch Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/kernel/sysfs.c b/arch/powerpc/kernel/sysfs.c index 800e5e9a087..156808086ca 100644 --- a/arch/powerpc/kernel/sysfs.c +++ b/arch/powerpc/kernel/sysfs.c @@ -298,7 +298,7 @@ static struct sysdev_attribute pa6t_attrs[] = { }; -static void register_cpu_online(unsigned int cpu) +static void __cpuinit register_cpu_online(unsigned int cpu) { struct cpu *c = &per_cpu(cpu_devices, cpu); struct sys_device *s = &c->sysdev;