Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 May 2016 11:47:54 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300492 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201605231147.u4NBlsr0005099@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Mon May 23 11:47:54 2016
New Revision: 300492
URL: https://svnweb.freebsd.org/changeset/base/300492

Log:
  Add more GFP related defines to the LinuxKPI.
  
  Obtained from:	kmacy @
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/include/linux/gfp.h

Modified: head/sys/compat/linuxkpi/common/include/linux/gfp.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/gfp.h	Mon May 23 11:44:46 2016	(r300491)
+++ head/sys/compat/linuxkpi/common/include/linux/gfp.h	Mon May 23 11:47:54 2016	(r300492)
@@ -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
 
 #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_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605231147.u4NBlsr0005099>