From: Alexander van Heukelum Date: Fri, 1 Feb 2008 16:49:43 +0000 (+0100) Subject: x86: avoid section mismatch involving arch_register_cpu X-Git-Tag: v2.6.25-rc1~1081^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d987402695f16ae33999d7315b915099d64616d4;p=pandora-kernel.git x86: avoid section mismatch involving arch_register_cpu Avoid section mismatch involving arch_register_cpu. Marking arch_register_cpu as __init and removing the export for non-hotplug-cpu configurations makes the following warning go away: Section mismatch in reference from the function arch_register_cpu() to the function .devinit.text:register_cpu() The function arch_register_cpu() references the function __devinit register_cpu(). This is often because arch_register_cpu lacks a __devinit annotation or the annotation of register_cpu is wrong. The only external user of arch_register_cpu in the tree is in drivers/acpi/processor_core.c where it is guarded by ACPI_HOTPLUG_CPU (which depends on HOTPLUG_CPU). Signed-off-by: Alexander van Heukelum CC: Sam Ravnborg Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed