[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1450741676-5865-27-git-send-email-viro@ZenIV.linux.org.uk>
Date: Mon, 21 Dec 2015 23:47:00 +0000
From: Al Viro <viro@...IV.linux.org.uk>
To: linux-kernel@...r.kernel.org
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Subject: [POC][PATCH 27/83] new helper: get_dma_pages()
From: Al Viro <viro@...iv.linux.org.uk>
same as __get_dma_pages(), except that it returns a pointer
Signed-off-by: Al Viro <viro@...iv.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 majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists