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