Commit 0c0fee01 authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 init code fixlet from Ingo Molnar:
 "A single change: fix obsolete init code annotations"

* 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86: Drop bogus __ref / __refdata annotations
parents a0c0d985 4daa832d
...@@ -710,7 +710,7 @@ static void acpi_map_cpu2node(acpi_handle handle, int cpu, int physid) ...@@ -710,7 +710,7 @@ static void acpi_map_cpu2node(acpi_handle handle, int cpu, int physid)
#endif #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; int cpu;
...@@ -726,12 +726,6 @@ static int _acpi_map_lsapic(acpi_handle handle, int physid, int *pcpu) ...@@ -726,12 +726,6 @@ static int _acpi_map_lsapic(acpi_handle handle, int physid, int *pcpu)
*pcpu = cpu; *pcpu = cpu;
return 0; 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); EXPORT_SYMBOL(acpi_map_cpu);
int acpi_unmap_cpu(int cpu) int acpi_unmap_cpu(int cpu)
......
...@@ -182,7 +182,7 @@ update_clusterinfo(struct notifier_block *nfb, unsigned long action, void *hcpu) ...@@ -182,7 +182,7 @@ update_clusterinfo(struct notifier_block *nfb, unsigned long action, void *hcpu)
return notifier_from_errno(err); return notifier_from_errno(err);
} }
static struct notifier_block __refdata x2apic_cpu_notifier = { static struct notifier_block x2apic_cpu_notifier = {
.notifier_call = update_clusterinfo, .notifier_call = update_clusterinfo,
}; };
......
...@@ -459,7 +459,7 @@ mc_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu) ...@@ -459,7 +459,7 @@ mc_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu)
return NOTIFY_OK; return NOTIFY_OK;
} }
static struct notifier_block __refdata mc_cpu_notifier = { static struct notifier_block mc_cpu_notifier = {
.notifier_call = mc_cpu_callback, .notifier_call = mc_cpu_callback,
}; };
......
...@@ -390,7 +390,7 @@ static int collect_cpu_info_early(struct ucode_cpu_info *uci) ...@@ -390,7 +390,7 @@ static int collect_cpu_info_early(struct ucode_cpu_info *uci)
} }
#ifdef DEBUG #ifdef DEBUG
static void __ref show_saved_mc(void) static void show_saved_mc(void)
{ {
int i, j; int i, j;
unsigned int sig, pf, rev, total_size, data_size, date; unsigned int sig, pf, rev, total_size, data_size, date;
......
...@@ -170,7 +170,7 @@ static int cpuid_class_cpu_callback(struct notifier_block *nfb, ...@@ -170,7 +170,7 @@ static int cpuid_class_cpu_callback(struct notifier_block *nfb,
return notifier_from_errno(err); 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, .notifier_call = cpuid_class_cpu_callback,
}; };
......
...@@ -1348,7 +1348,7 @@ static void remove_siblinginfo(int cpu) ...@@ -1348,7 +1348,7 @@ static void remove_siblinginfo(int cpu)
cpumask_clear_cpu(cpu, cpu_sibling_setup_mask); 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); set_cpu_online(cpu, false);
cpumask_clear_cpu(cpu, cpu_callout_mask); cpumask_clear_cpu(cpu, cpu_callout_mask);
......
...@@ -57,7 +57,7 @@ __setup("cpu0_hotplug", enable_cpu0_hotplug); ...@@ -57,7 +57,7 @@ __setup("cpu0_hotplug", enable_cpu0_hotplug);
* *
* This is only called for debugging CPU offline/online feature. * 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); struct device *dev = get_cpu_device(cpu);
int ret; int ret;
...@@ -104,7 +104,7 @@ static int __init debug_hotplug_cpu(void) ...@@ -104,7 +104,7 @@ static int __init debug_hotplug_cpu(void)
late_initcall_sync(debug_hotplug_cpu); late_initcall_sync(debug_hotplug_cpu);
#endif /* CONFIG_DEBUG_HOTPLUG_CPU0 */ #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); struct cpuinfo_x86 *c = &cpu_data(num);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment