diff options
author | hselasky <hselasky@FreeBSD.org> | 2016-05-23 11:47:54 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2016-05-23 11:47:54 +0000 |
commit | 1f43b454c7dad05be08c70021bdd2f81206916a1 (patch) | |
tree | fd7293ba9e77d2fd34f166b645bd59ce41d33652 | |
parent | a5692befebcaeadd48eb2e7965d919df90e47d23 (diff) | |
download | FreeBSD-src-1f43b454c7dad05be08c70021bdd2f81206916a1.zip FreeBSD-src-1f43b454c7dad05be08c70021bdd2f81206916a1.tar.gz |
Add more GFP related defines to the LinuxKPI.
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/gfp.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/gfp.h b/sys/compat/linuxkpi/common/include/linux/gfp.h index d0fb0ac..374ed79 100644 --- a/sys/compat/linuxkpi/common/include/linux/gfp.h +++ b/sys/compat/linuxkpi/common/include/linux/gfp.h @@ -46,6 +46,14 @@ #define __GFP_NOWARN 0 #define __GFP_HIGHMEM 0 #define __GFP_ZERO M_ZERO +#define __GFP_NORETRY 0 +#define __GFP_RECLAIM 0 +#define __GFP_RECLAIMABLE 0 + +#define __GFP_IO 0 +#define __GFP_NO_KSWAPD 0 +#define __GFP_WAIT M_WAITOK +#define __GFP_DMA32 0 #define GFP_NOWAIT M_NOWAIT #define GFP_ATOMIC (M_NOWAIT | M_USE_RESERVE) @@ -55,6 +63,8 @@ #define GFP_HIGHUSER_MOVABLE M_WAITOK #define GFP_IOFS M_NOWAIT #define GFP_NOIO M_NOWAIT +#define GFP_DMA32 0 +#define GFP_TEMPORARY 0 static inline void * page_address(struct page *page) @@ -147,4 +157,7 @@ static inline uintptr_t __get_free_pages(gfp_t gfp_mask, unsigned int order) #define kmalloc_node(chunk, mask, node) kmalloc(chunk, mask) +#define SetPageReserved(page) do { } while (0) /* NOP */ +#define ClearPageReserved(page) do { } while (0) /* NOP */ + #endif /* _LINUX_GFP_H_ */ |