diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-01 12:33:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-01 12:33:26 -0400 |
commit | 0c0fee018d14b585461b146bdeda8bab9a61c211 (patch) | |
tree | d8137850641d9ea580bcc55b4c531c97a1651a75 | |
parent | a0c0d985ded583e52399b5158791bedc2815eefa (diff) | |
parent | 4daa832d99871356f5fdc52372c975e40f73a15e (diff) |
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
-rw-r--r-- | arch/x86/kernel/acpi/boot.c | 8 | ||||
-rw-r--r-- | arch/x86/kernel/apic/x2apic_cluster.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/microcode/core.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/microcode/intel_early.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/cpuid.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/smpboot.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/topology.c | 4 |
7 files changed, 8 insertions, 14 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index e49ee24da85e..75e8bad53798 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c | |||
@@ -710,7 +710,7 @@ static void acpi_map_cpu2node(acpi_handle handle, int cpu, int physid) | |||
710 | #endif | 710 | #endif |
711 | } | 711 | } |
712 | 712 | ||
713 | static int _acpi_map_lsapic(acpi_handle handle, int physid, int *pcpu) | 713 | int acpi_map_cpu(acpi_handle handle, phys_cpuid_t physid, int *pcpu) |
714 | { | 714 | { |
715 | int cpu; | 715 | int cpu; |
716 | 716 | ||
@@ -726,12 +726,6 @@ static int _acpi_map_lsapic(acpi_handle handle, int physid, int *pcpu) | |||
726 | *pcpu = cpu; | 726 | *pcpu = cpu; |
727 | return 0; | 727 | return 0; |
728 | } | 728 | } |
729 | |||
730 | /* wrapper to silence section mismatch warning */ | ||
731 | int __ref acpi_map_cpu(acpi_handle handle, phys_cpuid_t physid, int *pcpu) | ||
732 | { | ||
733 | return _acpi_map_lsapic(handle, physid, pcpu); | ||
734 | } | ||
735 | EXPORT_SYMBOL(acpi_map_cpu); | 729 | EXPORT_SYMBOL(acpi_map_cpu); |
736 | 730 | ||
737 | int acpi_unmap_cpu(int cpu) | 731 | int acpi_unmap_cpu(int cpu) |
diff --git a/arch/x86/kernel/apic/x2apic_cluster.c b/arch/x86/kernel/apic/x2apic_cluster.c index 1b6c1a4526a5..cc8311c4d298 100644 --- a/arch/x86/kernel/apic/x2apic_cluster.c +++ b/arch/x86/kernel/apic/x2apic_cluster.c | |||
@@ -182,7 +182,7 @@ update_clusterinfo(struct notifier_block *nfb, unsigned long action, void *hcpu) | |||
182 | return notifier_from_errno(err); | 182 | return notifier_from_errno(err); |
183 | } | 183 | } |
184 | 184 | ||
185 | static struct notifier_block __refdata x2apic_cpu_notifier = { | 185 | static struct notifier_block x2apic_cpu_notifier = { |
186 | .notifier_call = update_clusterinfo, | 186 | .notifier_call = update_clusterinfo, |
187 | }; | 187 | }; |
188 | 188 | ||
diff --git a/arch/x86/kernel/cpu/microcode/core.c b/arch/x86/kernel/cpu/microcode/core.c index 3c986390058a..9e3f3c7dd5d7 100644 --- a/arch/x86/kernel/cpu/microcode/core.c +++ b/arch/x86/kernel/cpu/microcode/core.c | |||
@@ -459,7 +459,7 @@ mc_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu) | |||
459 | return NOTIFY_OK; | 459 | return NOTIFY_OK; |
460 | } | 460 | } |
461 | 461 | ||
462 | static struct notifier_block __refdata mc_cpu_notifier = { | 462 | static struct notifier_block mc_cpu_notifier = { |
463 | .notifier_call = mc_cpu_callback, | 463 | .notifier_call = mc_cpu_callback, |
464 | }; | 464 | }; |
465 | 465 | ||
diff --git a/arch/x86/kernel/cpu/microcode/intel_early.c b/arch/x86/kernel/cpu/microcode/intel_early.c index 8187b7247d1c..37ea89c11520 100644 --- a/arch/x86/kernel/cpu/microcode/intel_early.c +++ b/arch/x86/kernel/cpu/microcode/intel_early.c | |||
@@ -390,7 +390,7 @@ static int collect_cpu_info_early(struct ucode_cpu_info *uci) | |||
390 | } | 390 | } |
391 | 391 | ||
392 | #ifdef DEBUG | 392 | #ifdef DEBUG |
393 | static void __ref show_saved_mc(void) | 393 | static void show_saved_mc(void) |
394 | { | 394 | { |
395 | int i, j; | 395 | int i, j; |
396 | unsigned int sig, pf, rev, total_size, data_size, date; | 396 | unsigned int sig, pf, rev, total_size, data_size, date; |
diff --git a/arch/x86/kernel/cpuid.c b/arch/x86/kernel/cpuid.c index 83741a71558f..bd3507da39f0 100644 --- a/arch/x86/kernel/cpuid.c +++ b/arch/x86/kernel/cpuid.c | |||
@@ -170,7 +170,7 @@ static int cpuid_class_cpu_callback(struct notifier_block *nfb, | |||
170 | return notifier_from_errno(err); | 170 | return notifier_from_errno(err); |
171 | } | 171 | } |
172 | 172 | ||
173 | static struct notifier_block __refdata cpuid_class_cpu_notifier = | 173 | static struct notifier_block cpuid_class_cpu_notifier = |
174 | { | 174 | { |
175 | .notifier_call = cpuid_class_cpu_callback, | 175 | .notifier_call = cpuid_class_cpu_callback, |
176 | }; | 176 | }; |
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index c15d0073c829..e0c198e5f920 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -1348,7 +1348,7 @@ static void remove_siblinginfo(int cpu) | |||
1348 | cpumask_clear_cpu(cpu, cpu_sibling_setup_mask); | 1348 | cpumask_clear_cpu(cpu, cpu_sibling_setup_mask); |
1349 | } | 1349 | } |
1350 | 1350 | ||
1351 | static void __ref remove_cpu_from_maps(int cpu) | 1351 | static void remove_cpu_from_maps(int cpu) |
1352 | { | 1352 | { |
1353 | set_cpu_online(cpu, false); | 1353 | set_cpu_online(cpu, false); |
1354 | cpumask_clear_cpu(cpu, cpu_callout_mask); | 1354 | cpumask_clear_cpu(cpu, cpu_callout_mask); |
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); | |||
57 | * | 57 | * |
58 | * This is only called for debugging CPU offline/online feature. | 58 | * This is only called for debugging CPU offline/online feature. |
59 | */ | 59 | */ |
60 | int __ref _debug_hotplug_cpu(int cpu, int action) | 60 | int _debug_hotplug_cpu(int cpu, int action) |
61 | { | 61 | { |
62 | struct device *dev = get_cpu_device(cpu); | 62 | struct device *dev = get_cpu_device(cpu); |
63 | int ret; | 63 | int ret; |
@@ -104,7 +104,7 @@ static int __init debug_hotplug_cpu(void) | |||
104 | late_initcall_sync(debug_hotplug_cpu); | 104 | late_initcall_sync(debug_hotplug_cpu); |
105 | #endif /* CONFIG_DEBUG_HOTPLUG_CPU0 */ | 105 | #endif /* CONFIG_DEBUG_HOTPLUG_CPU0 */ |
106 | 106 | ||
107 | int __ref arch_register_cpu(int num) | 107 | int arch_register_cpu(int num) |
108 | { | 108 | { |
109 | struct cpuinfo_x86 *c = &cpu_data(num); | 109 | struct cpuinfo_x86 *c = &cpu_data(num); |
110 | 110 | ||