Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 486c79b5 authored by Bjorn Helgaas's avatar Bjorn Helgaas
Browse files

ACPI / numa: Fix acpi_get_node() prototype



acpi_get_node() takes an acpi_handle, not an "acpi_handle *".  This
fixes the prototype and the definitions.

Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Acked-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent b1e9cee7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -331,7 +331,7 @@ int acpi_get_pxm(acpi_handle h)
	return -1;
}

int acpi_get_node(acpi_handle *handle)
int acpi_get_node(acpi_handle handle)
{
	int pxm, node = NUMA_NO_NODE;

+2 −2
Original line number Diff line number Diff line
@@ -260,13 +260,13 @@ extern void acpi_osi_setup(char *str);

#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
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;
}