26 lines · c
1/* SPDX-License-Identifier: GPL-2.0-or-later */2#ifndef _MEMBLOCK_ALLOC_EXACT_NID_H3#define _MEMBLOCK_ALLOC_EXACT_NID_H4 5#include "common.h"6 7int memblock_alloc_exact_nid_checks(void);8int __memblock_alloc_exact_nid_numa_checks(void);9 10#ifdef CONFIG_NUMA11static inline int memblock_alloc_exact_nid_numa_checks(void)12{13 __memblock_alloc_exact_nid_numa_checks();14 return 0;15}16 17#else18static inline int memblock_alloc_exact_nid_numa_checks(void)19{20 return 0;21}22 23#endif /* CONFIG_NUMA */24 25#endif26