Subject: [merged] mm-acpi-use-numa_no_node.patch removed from -mm tree To: wujianguo@xxxxxxxxxx,rientjes@xxxxxxxxxx,rjw@xxxxxxx,mm-commits@xxxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Thu, 26 Sep 2013 12:31:16 -0700 The patch titled Subject: mm/acpi: use NUMA_NO_NODE has been removed from the -mm tree. Its filename was mm-acpi-use-numa_no_node.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Jianguo Wu <wujianguo@xxxxxxxxxx> Subject: mm/acpi: use NUMA_NO_NODE Use more appropriate NUMA_NO_NODE instead of -1 Signed-off-by: Jianguo Wu <wujianguo@xxxxxxxxxx> Acked-by: David Rientjes <rientjes@xxxxxxxxxx> Cc: "Rafael J. Wysocki" <rjw@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/acpi/acpi_memhotplug.c | 2 +- drivers/acpi/numa.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff -puN drivers/acpi/acpi_memhotplug.c~mm-acpi-use-numa_no_node drivers/acpi/acpi_memhotplug.c --- a/drivers/acpi/acpi_memhotplug.c~mm-acpi-use-numa_no_node +++ a/drivers/acpi/acpi_memhotplug.c @@ -281,7 +281,7 @@ static void acpi_memory_remove_memory(st if (!info->enabled) continue; - if (nid < 0) + if (nid == NUMA_NO_NODE) nid = memory_add_physaddr_to_nid(info->start_addr); acpi_unbind_memory_blocks(info, handle); diff -puN drivers/acpi/numa.c~mm-acpi-use-numa_no_node drivers/acpi/numa.c --- a/drivers/acpi/numa.c~mm-acpi-use-numa_no_node +++ a/drivers/acpi/numa.c @@ -73,7 +73,7 @@ int acpi_map_pxm_to_node(int pxm) { int node = pxm_to_node_map[pxm]; - if (node < 0) { + if (node == NUMA_NO_NODE) { if (nodes_weight(nodes_found_map) >= MAX_NUMNODES) return NUMA_NO_NODE; node = first_unset_node(nodes_found_map); @@ -334,7 +334,7 @@ int acpi_get_pxm(acpi_handle h) int acpi_get_node(acpi_handle *handle) { - int pxm, node = -1; + int pxm, node = NUMA_NO_NODE; pxm = acpi_get_pxm(handle); if (pxm >= 0 && pxm < MAX_PXM_DOMAINS) _ Patches currently in -mm which might be from wujianguo@xxxxxxxxxx are x86-srat-use-numa_no_node.patch mm-vmalloc-use-numa_no_node.patch mm-huge_memoryc-fix-stale-comments-of-transparent_hugepage_flags.patch mm-arch-use-numa_no_node.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html