From: Andrew Morton Date: Wed, 20 Feb 2013 02:14:21 +0000 (+1100) Subject: cpu_hotplug-clear-apicid-to-node-when-the-cpu-is-hotremoved-fix X-Git-Tag: next-20130220~1^2~520 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f1cd258a82d63eb3becfaac24cec350be11d4340;p=karo-tx-linux.git cpu_hotplug-clear-apicid-to-node-when-the-cpu-is-hotremoved-fix fix section error __apicid_to_node can no longer be __cpuinit as it is referred to from acpi_unmap_lsapic(). >> WARNING: vmlinux.o(.text+0x43773): Section mismatch in reference from the function acpi_unmap_lsapic() to the variable .cpuinit.data:__apicid_to_node The function acpi_unmap_lsapic() references the variable __cpuinitdata __apicid_to_node. This is often because acpi_unmap_lsapic lacks a __cpuinitdata annotation or the annotation of __apicid_to_node is wrong. Reported-by: Wu Fengguang Cc: "H. Peter Anvin" Cc: David Rientjes Cc: Ingo Molnar Cc: Jiang Liu Cc: KOSAKI Motohiro Cc: Mel Gorman Cc: Minchan Kim Cc: Peter Zijlstra Cc: Tang Chen Cc: Thomas Gleixner Cc: Wen Congyang Cc: Yasuaki Ishimatsu Signed-off-by: Andrew Morton --- diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c index 67cc127767c5..5b957b18aee7 100644 --- a/arch/x86/mm/numa.c +++ b/arch/x86/mm/numa.c @@ -56,7 +56,7 @@ early_param("numa", numa_setup); /* * apicid, cpu, node mappings */ -s16 __apicid_to_node[MAX_LOCAL_APIC] __cpuinitdata = { +s16 __apicid_to_node[MAX_LOCAL_APIC] = { [0 ... MAX_LOCAL_APIC-1] = NUMA_NO_NODE };