Skip to content

Commit

Permalink
powerpc: register_cpu_online should be __cpuinit
Browse files Browse the repository at this point in the history
It is called only in cpu online paths.

(caught by CONFIG_DEBUG_SECTION_MISMATCH=y)

Signed-off-by: Nathan Lynch <ntl@pobox.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Nathan Lynch authored and Benjamin Herrenschmidt committed Jul 28, 2008
1 parent 7d2f607 commit 9ba1984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9ba1984

Please sign in to comment.