diff options
author | 2024-06-14 11:05:43 +0300 | |
---|---|---|
committer | 2024-06-16 10:17:57 +0300 | |
commit | 8043832e2a123fd9372007a29192f2f3ba328cd6 (patch) | |
tree | 91eead9aeec744a0c76e4da790894a9a35617185 /scripts/generate_rust_analyzer.py | |
parent | x86/mm/numa: Use NUMA_NO_NODE when calling memblock_set_node() (diff) | |
download | linux-rng-8043832e2a123fd9372007a29192f2f3ba328cd6.tar.xz linux-rng-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 <torvalds@linux-foundation.org>
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions