7de7c0a1444e75d9bed2adc0ccb582ca6abafcb1
[linux-2.6-microblaze.git] / include / linux / memregion.h
1 /* 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
7 #ifdef CONFIG_MEMREGION
8 int memregion_alloc(gfp_t gfp);
9 void memregion_free(int id);
10 #else
11 static inline int memregion_alloc(gfp_t gfp)
12 {
13         return -ENOMEM;
14 }
15 void memregion_free(int id)
16 {
17 }
18 #endif
19 #endif /* _MEMREGION_H_ */