Files
linux-stable-mirror/include/linux
Mike Rapoport (IBM) fdebee5c5c memblock: use numa_valid_node() helper to check for invalid node ID
commit 8043832e2a 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-07-25 09:50:47 +02:00
2024-10-04 16:29:59 +02:00
2024-07-05 09:34:04 +02:00
2024-12-14 19:59:58 +01:00
2024-08-29 17:33:31 +02:00
2024-06-16 13:47:41 +02:00
2024-06-12 11:12:52 +02:00
2025-01-09 13:31:41 +01:00
2025-01-09 13:31:41 +01:00
2024-08-29 17:33:23 +02:00
2024-10-17 15:24:23 +02:00
2024-11-08 16:28:26 +01:00