]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arm64: fixup for mm renames
authorAndrew Morton <akpm@linux-foundation.org>
Sun, 8 Nov 2015 00:06:59 +0000 (16:06 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 8 Nov 2015 00:45:51 +0000 (16:45 -0800)
__GFP_WAIT was renamed for __GFP_RECLAIM and the gfpflags_allow_blocking()
helper was added.

Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm64/mm/dma-mapping.c

index bb4bf6a06ad6370ebf54e293b8c027367796c518..131a199114b405e8403f05137e560a2b317f4941 100644 (file)
@@ -562,7 +562,7 @@ static void *__iommu_alloc_attrs(struct device *dev, size_t size,
         */
        gfp |= __GFP_ZERO;
 
-       if (gfp & __GFP_WAIT) {
+       if (gfpflags_allow_blocking(gfp)) {
                struct page **pages;
                pgprot_t prot = __get_dma_pgprot(attrs, PAGE_KERNEL, coherent);