[5/5] x86, topology: Drop bogus __ref annotations
diff mbox series

Message ID 1437322974-11081-6-git-send-email-minipli@googlemail.com
State New, archived
Headers show
  • x86: __ref / __refdata cleanup
Related show

Commit Message

Mathias Krause July 19, 2015, 4:22 p.m. UTC
In commit 5c113fbeed7a ("fix cpu_chain section mismatch...") cpu_chain
lost its __cpuinitdata annotation. This and the global __cpuinit
annotation drop in v3.11 vanished the need to mark all users, including
transitive ones like cpu_up(), with the __ref annotation. register_cpu()
lost its __cpuinit annotation in commit ia83048ebd449 ("drivers: delete
__cpuinit usage from all remaining drivers files"), allowing us to drop
the __ref annotation of _debug_hotplug_cpu() and arch_register_cpu().

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
 arch/x86/kernel/topology.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff mbox series

diff --git a/arch/x86/kernel/topology.c b/arch/x86/kernel/topology.c
index 649b010da00b..12cbe2b88c0f 100644
--- a/arch/x86/kernel/topology.c
+++ b/arch/x86/kernel/topology.c
@@ -57,7 +57,7 @@  __setup("cpu0_hotplug", enable_cpu0_hotplug);
  * This is only called for debugging CPU offline/online feature.
-int __ref _debug_hotplug_cpu(int cpu, int action)
+int _debug_hotplug_cpu(int cpu, int action)
 	struct device *dev = get_cpu_device(cpu);
 	int ret;
@@ -104,7 +104,7 @@  static int __init debug_hotplug_cpu(void)
-int __ref arch_register_cpu(int num)
+int arch_register_cpu(int num)
 	struct cpuinfo_x86 *c = &cpu_data(num);