1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 #ifndef _MEMBLOCK_ALLOC_NID_H 3 #define _MEMBLOCK_ALLOC_NID_H 4 5 #include "common.h" 6 7 int memblock_alloc_nid_checks(void); 8 int memblock_alloc_exact_nid_range_checks(void); 9 int __memblock_alloc_nid_numa_checks(void); 10 11 #ifdef CONFIG_NUMA 12 static inline int memblock_alloc_nid_numa_checks(void) 13 { 14 __memblock_alloc_nid_numa_checks(); 15 return 0; 16 } 17 18 #else 19 static inline int memblock_alloc_nid_numa_checks(void) 20 { 21 return 0; 22 } 23 24 #endif /* CONFIG_NUMA */ 25 26 #endif 27