Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

memblock tests: fix implicit declaration of function 'numa_valid_node'

commit 8043832e2a12 ("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: Wei Yang <richard.weiyang@gmail.com>
CC: Mike Rapoport (IBM) <rppt@kernel.org>
Link: https://lore.kernel.org/r/20240624015432.31134-1-richard.weiyang@gmail.com
Signed-off-by: Mike Rapoport <rppt@kernel.org>

authored by

Wei Yang and committed by
Mike Rapoport
9364a7e4 94ff46de

+5
+5
tools/include/linux/numa.h
··· 13 13 14 14 #define NUMA_NO_NODE (-1) 15 15 16 + static inline bool numa_valid_node(int nid) 17 + { 18 + return nid >= 0 && nid < MAX_NUMNODES; 19 + } 20 + 16 21 #endif /* _LINUX_NUMA_H */