drm: Add __free_page()
authorFrançois Tigeot <ftigeot@wolfpond.org>
Mon, 4 May 2015 07:29:20 +0000 (09:29 +0200)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Mon, 4 May 2015 07:29:35 +0000 (09:29 +0200)
sys/dev/drm/include/linux/gfp.h
sys/dev/drm/include/linux/mm.h

index 83cffaa..8bceda0 100644 (file)
 #ifndef _LINUX_GFP_H_
 #define _LINUX_GFP_H_
 
+#include <vm/vm_page.h>
+
 #define GFP_ATOMIC     M_NOWAIT
 #define GFP_KERNEL     M_WAITOK
 #define GFP_TEMPORARY  M_WAITOK
 
+static inline void __free_page(struct vm_page *page)
+{
+       vm_page_free_contig(page, PAGE_SIZE);
+}
+
 #endif /* _LINUX_GFP_H_ */
index 2fe6615..f4874ee 100644 (file)
@@ -32,6 +32,7 @@
 #define        _LINUX_MM_H_
 
 #include <linux/errno.h>
+#include <linux/gfp.h>
 #include <linux/kernel.h>
 
 #include <asm/page.h>