ACPI: Section mismatch ... acpi_map_pxm_to_node

Last of the "Section mismatch" errors from ia64 builds! acpi_map_pxm_to_node()
is defined with attribute __cpuinit, but is called by "normal" kernel functions
acpi_getnode() and acpi_map_cpu2node().

Commit f363d16fbb moved the data structures on
which this routine operates from __cpuinitdata to regular memory, so this
routine can also move out of init space.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
Luck, Tony 2007-05-24 13:57:40 -07:00 committed by Len Brown
parent cc4c24e115
commit 8ff6f48d99
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ int node_to_pxm(int node)
return node_to_pxm_map[node]; return node_to_pxm_map[node];
} }
int __cpuinit acpi_map_pxm_to_node(int pxm) int acpi_map_pxm_to_node(int pxm)
{ {
int node = pxm_to_node_map[pxm]; int node = pxm_to_node_map[pxm];

View File

@ -13,7 +13,7 @@
extern int pxm_to_node(int); extern int pxm_to_node(int);
extern int node_to_pxm(int); extern int node_to_pxm(int);
extern int __cpuinit acpi_map_pxm_to_node(int); extern int acpi_map_pxm_to_node(int);
extern void __cpuinit acpi_unmap_pxm_to_node(int); extern void __cpuinit acpi_unmap_pxm_to_node(int);
#endif /* CONFIG_ACPI_NUMA */ #endif /* CONFIG_ACPI_NUMA */