[Patch 3/4] Clear up section mismatch with arch_unregister_cpu()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The generic_defconfig has three section mismatches.  This clears
arch_unregister_cpu()

Signed-off-by: Robin Holt <holt@xxxxxxx>
Signed-off-by: Jack Steiner <steiner@xxxxxxx>

---

 arch/ia64/kernel/topology.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Index: v2.6.28-rc7-20081208-218d11a/arch/ia64/kernel/topology.c
===================================================================
--- v2.6.28-rc7-20081208-218d11a.orig/arch/ia64/kernel/topology.c	2008-12-08 08:23:35.011494686 -0600
+++ v2.6.28-rc7-20081208-218d11a/arch/ia64/kernel/topology.c	2008-12-08 08:24:25.153747021 -0600
@@ -53,10 +53,12 @@ int __ref arch_register_cpu(int num)
 }
 EXPORT_SYMBOL(arch_register_cpu);
 
-void arch_unregister_cpu(int num)
+void __ref arch_unregister_cpu(int num)
 {
 	unregister_cpu(&sysfs_cpus[num].cpu);
+#ifdef CONFIG_ACPI
 	unmap_cpu_from_node(num, cpu_to_node(num));
+#endif
 }
 EXPORT_SYMBOL(arch_unregister_cpu);
 #else

--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux