Commit 9364a7e4 authored by Wei Yang's avatar Wei Yang Committed by Mike Rapoport

memblock tests: fix implicit declaration of function 'numa_valid_node'

commit 8043832e ("memblock: use numa_valid_node() helper to check
for invalid node ID") introduce a new helper numa_valid_node(), which is
not defined in memblock tests.

Let's add it in the corresponding header file.
Signed-off-by: default avatarWei Yang <richard.weiyang@gmail.com>
CC: Mike Rapoport (IBM) <rppt@kernel.org>
Link: https://lore.kernel.org/r/20240624015432.31134-1-richard.weiyang@gmail.comSigned-off-by: default avatarMike Rapoport <rppt@kernel.org>
parent 94ff46de
......@@ -13,4 +13,9 @@
#define NUMA_NO_NODE (-1)
static inline bool numa_valid_node(int nid)
{
return nid >= 0 && nid < MAX_NUMNODES;
}
#endif /* _LINUX_NUMA_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment