diff options
| author | Mike Rapoport (IBM) <[email protected]> | 2024-06-14 08:05:43 +0000 |
|---|---|---|
| committer | Mike Rapoport (IBM) <[email protected]> | 2024-06-16 07:17:57 +0000 |
| commit | 8043832e2a123fd9372007a29192f2f3ba328cd6 (patch) | |
| tree | 91eead9aeec744a0c76e4da790894a9a35617185 /rust/helpers.c | |
| parent | x86/mm/numa: Use NUMA_NO_NODE when calling memblock_set_node() (diff) | |
| download | kernel-8043832e2a123fd9372007a29192f2f3ba328cd6.tar.gz kernel-8043832e2a123fd9372007a29192f2f3ba328cd6.zip | |
memblock: use numa_valid_node() helper to check for invalid node ID
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 <[email protected]>
Signed-off-by: Mike Rapoport (IBM) <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions
