xref: /linux/tools/testing/memblock/tests/alloc_exact_nid_api.c (revision 61da03328a603d2d4a5b2e80cbe29bbf0122e6f8)
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 #include "alloc_exact_nid_api.h"
3 #include "alloc_nid_api.h"
4 
5 #define FUNC_NAME			"memblock_alloc_exact_nid_raw"
6 
7 int memblock_alloc_exact_nid_checks(void)
8 {
9 	prefix_reset();
10 	prefix_push(FUNC_NAME);
11 
12 	reset_memblock_attributes();
13 	dummy_physical_memory_init();
14 
15 	memblock_alloc_exact_nid_range_checks();
16 
17 	dummy_physical_memory_cleanup();
18 
19 	prefix_pop();
20 
21 	return 0;
22 }
23