提交 d79ed248 编写于 作者: B Bjorn Helgaas

ACPI / numa: Make __acpi_map_pxm_to_node(), acpi_get_pxm() static

__acpi_map_pxm_to_node() and acpi_get_pxm() are only used within
drivers/acpi/numa.c.  This makes them static and removes their
declarations.
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
Acked-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 962fe9c9
...@@ -60,7 +60,7 @@ int node_to_pxm(int node) ...@@ -60,7 +60,7 @@ int node_to_pxm(int node)
return node_to_pxm_map[node]; return node_to_pxm_map[node];
} }
void __acpi_map_pxm_to_node(int pxm, int node) static void __acpi_map_pxm_to_node(int pxm, int node)
{ {
if (pxm_to_node_map[pxm] == NUMA_NO_NODE || node < pxm_to_node_map[pxm]) if (pxm_to_node_map[pxm] == NUMA_NO_NODE || node < pxm_to_node_map[pxm])
pxm_to_node_map[pxm] = node; pxm_to_node_map[pxm] = node;
...@@ -314,7 +314,7 @@ int __init acpi_numa_init(void) ...@@ -314,7 +314,7 @@ int __init acpi_numa_init(void)
return 0; return 0;
} }
int acpi_get_pxm(acpi_handle h) static int acpi_get_pxm(acpi_handle h)
{ {
unsigned long long pxm; unsigned long long pxm;
acpi_status status; acpi_status status;
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
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 void __acpi_map_pxm_to_node(int, int);
extern int acpi_map_pxm_to_node(int); extern int acpi_map_pxm_to_node(int);
extern unsigned char acpi_srat_revision; extern unsigned char acpi_srat_revision;
......
...@@ -259,13 +259,8 @@ extern void acpi_dmi_osi_linux(int enable, const struct dmi_system_id *d); ...@@ -259,13 +259,8 @@ extern void acpi_dmi_osi_linux(int enable, const struct dmi_system_id *d);
extern void acpi_osi_setup(char *str); extern void acpi_osi_setup(char *str);
#ifdef CONFIG_ACPI_NUMA #ifdef CONFIG_ACPI_NUMA
int acpi_get_pxm(acpi_handle handle);
int acpi_get_node(acpi_handle handle); int acpi_get_node(acpi_handle handle);
#else #else
static inline int acpi_get_pxm(acpi_handle handle)
{
return 0;
}
static inline int acpi_get_node(acpi_handle handle) static inline int acpi_get_node(acpi_handle handle)
{ {
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册