blob: c04c4fd2e20919a8e0fb11b753740b4ec4057b46 [file] [log] [blame]
Olivier Deprez157378f2022-04-04 15:47:50 +02001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _MEMREGION_H_
3#define _MEMREGION_H_
4#include <linux/types.h>
5#include <linux/errno.h>
6
7struct memregion_info {
8 int target_node;
9};
10
11#ifdef CONFIG_MEMREGION
12int memregion_alloc(gfp_t gfp);
13void memregion_free(int id);
14#else
15static inline int memregion_alloc(gfp_t gfp)
16{
17 return -ENOMEM;
18}
Olivier Deprez92d4c212022-12-06 15:05:30 +010019static inline void memregion_free(int id)
Olivier Deprez157378f2022-04-04 15:47:50 +020020{
21}
22#endif
23#endif /* _MEMREGION_H_ */