From 4ed582902c7046e19348ca5a4bda64b262db7e46 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 7 Feb 2013 12:26:33 +1100 Subject: [PATCH] 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 --- arch/x86/mm/numa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }; -- 2.39.5