Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpu: Remove bogus __ref annotation of cpu_subsys_online()

In commit 0db0628d9012 ("kernel: delete __cpuinit usage from all core
kernel files") cpu_up() lost its __cpuinit annotation, vanishing the
need for cpu_subsys_online() to have a __ref annotation. Just drop it
to be able to catch real section mismatches in the future.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Mathias Krause and committed by
Greg Kroah-Hartman
eda5867b a885de67

+1 -1
+1 -1
drivers/base/cpu.c
··· 41 41 cpu->node_id = to_nid; 42 42 } 43 43 44 - static int __ref cpu_subsys_online(struct device *dev) 44 + static int cpu_subsys_online(struct device *dev) 45 45 { 46 46 struct cpu *cpu = container_of(dev, struct cpu, dev); 47 47 int cpuid = dev->id;