From: Al Viro <v...@zeniv.linux.org.uk>

same as __get_dma_pages(), except that it returns a pointer

Signed-off-by: Al Viro <v...@zeniv.linux.org.uk>
---
 include/linux/gfp.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/linux/gfp.h b/include/linux/gfp.h
index f4304c1..07b714d 100644
--- a/include/linux/gfp.h
+++ b/include/linux/gfp.h
@@ -486,6 +486,9 @@ void * __meminit alloc_pages_exact_nid(int nid, size_t 
size, gfp_t gfp_mask);
 #define __get_dma_pages(gfp_mask, order) \
                __get_free_pages((gfp_mask) | GFP_DMA, (order))
 
+#define get_dma_pages(gfp_mask, order) \
+               ((void *)__get_free_pages((gfp_mask) | GFP_DMA, (order)))
+
 extern void __free_pages(struct page *page, unsigned int order);
 extern void free_pages(const void *addr, unsigned int order);
 extern void free_hot_cold_page(struct page *page, bool cold);
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to