Files
linux-cix/mm
Mike Rapoport (IBM) fdebee5c5c memblock: use numa_valid_node() helper to check for invalid node ID
commit 8043832e2a123fd9372007a29192f2f3ba328cd6 upstream.

Introduce numa_valid_node(nid) that verifies that nid is a valid node ID
and use that instead of comparing nid parameter with either NUMA_NO_NODE
or MAX_NUMNODES.

This makes the checks for valid node IDs consistent and more robust and
allows to get rid of multiple WARNings.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-01-17 13:36:09 +01:00
..
2024-08-19 06:04:24 +02:00
2024-10-10 11:58:02 +02:00
2024-06-16 13:47:41 +02:00
2024-11-22 15:38:37 +01:00
2024-12-27 13:58:53 +01:00