x86: Drop bogus __ref / __refdata annotations
authorMathias Krause <minipli@googlemail.com>
Mon, 20 Jul 2015 16:32:53 +0000 (18:32 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 20 Jul 2015 16:57:20 +0000 (18:57 +0200)
The __ref / __refdata annotations used to be needed because of
referencing functions / variables annotated __cpuinit /
__cpuinitdata.

But those annotations vanished during the development of v3.11.

Therefore most of the __ref / __refdata annotations are not needed
anymore. As they may hide legitimate sections mismatches, we
better get rid of them.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1437409973-8927-1-git-send-email-minipli@googlemail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/acpi/boot.c
arch/x86/kernel/apic/x2apic_cluster.c
arch/x86/kernel/cpu/microcode/core.c
arch/x86/kernel/cpu/microcode/intel_early.c
arch/x86/kernel/cpuid.c
arch/x86/kernel/smpboot.c
arch/x86/kernel/topology.c

index e49ee24da85e17b247b8decc355dd15393e8f1ad..75e8bad537984de5b2c226c5b34f7e5984bf128d 100644 (file)
@@ -710,7 +710,7 @@ static void acpi_map_cpu2node(acpi_handle handle, int cpu, int physid)
 #endif
 }
 
-static int _acpi_map_lsapic(acpi_handle handle, int physid, int *pcpu)
+int acpi_map_cpu(acpi_handle handle, phys_cpuid_t physid, int *pcpu)
 {
        int cpu;
 
@@ -726,12 +726,6 @@ static int _acpi_map_lsapic(acpi_handle handle, int physid, int *pcpu)
        *pcpu = cpu;
        return 0;
 }
-
-/* wrapper to silence section mismatch warning */
-int __ref acpi_map_cpu(acpi_handle handle, phys_cpuid_t physid, int *pcpu)
-{
-       return _acpi_map_lsapic(handle, physid, pcpu);
-}
 EXPORT_SYMBOL(acpi_map_cpu);
 
 int acpi_unmap_cpu(int cpu)
index ab3219b3fbda3794eeeded5c9002dd85d3a5eb29..e709bc276feb79183185a0b8eb53addb2260a755 100644 (file)
@@ -182,7 +182,7 @@ update_clusterinfo(struct notifier_block *nfb, unsigned long action, void *hcpu)
        return notifier_from_errno(err);
 }
 
-static struct notifier_block __refdata x2apic_cpu_notifier = {
+static struct notifier_block x2apic_cpu_notifier = {
        .notifier_call = update_clusterinfo,
 };
 
index 6236a54a63f449ce2ea824be13a3bcca2f57e4b9..532026d48096cfe6fa730dc199477d52df5fe01c 100644 (file)
@@ -460,7 +460,7 @@ mc_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu)
        return NOTIFY_OK;
 }
 
-static struct notifier_block __refdata mc_cpu_notifier = {
+static struct notifier_block mc_cpu_notifier = {
        .notifier_call  = mc_cpu_callback,
 };
 
index 8187b7247d1c3e97b9a7321a1d0e12ccda1e0962..37ea89c115202da99862b6a1325672d29fdcbc9e 100644 (file)
@@ -390,7 +390,7 @@ static int collect_cpu_info_early(struct ucode_cpu_info *uci)
 }
 
 #ifdef DEBUG
-static void __ref show_saved_mc(void)
+static void show_saved_mc(void)
 {
        int i, j;
        unsigned int sig, pf, rev, total_size, data_size, date;
index 83741a71558fb0a311fb1bb079e125f24435344a..bd3507da39f01678257e3d8a65a3009ad1d1f6f1 100644 (file)
@@ -170,7 +170,7 @@ static int cpuid_class_cpu_callback(struct notifier_block *nfb,
        return notifier_from_errno(err);
 }
 
-static struct notifier_block __refdata cpuid_class_cpu_notifier =
+static struct notifier_block cpuid_class_cpu_notifier =
 {
        .notifier_call = cpuid_class_cpu_callback,
 };
index b1f3ed9c7a9efcb1df4ef0da09a731600cbeb679..1d06cf8c0093649c8351c7780701c969c88b34bc 100644 (file)
@@ -1358,7 +1358,7 @@ static void remove_siblinginfo(int cpu)
        cpumask_clear_cpu(cpu, cpu_sibling_setup_mask);
 }
 
-static void __ref remove_cpu_from_maps(int cpu)
+static void remove_cpu_from_maps(int cpu)
 {
        set_cpu_online(cpu, false);
        cpumask_clear_cpu(cpu, cpu_callout_mask);
index 649b010da00ba5a0c191a4144f2458c08f0500ab..12cbe2b88c0f3cb14754e6bce2d058b5d0bb63a7 100644 (file)
@@ -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)
 late_initcall_sync(debug_hotplug_cpu);
 #endif /* CONFIG_DEBUG_HOTPLUG_CPU0 */
 
-int __ref arch_register_cpu(int num)
+int arch_register_cpu(int num)
 {
        struct cpuinfo_x86 *c = &cpu_data(num);
 
This page took 0.030256 seconds and 5 git commands to generate.