From: Andrew Morton Date: Sun, 8 Nov 2015 00:06:59 +0000 (-0800) Subject: arm64: fixup for mm renames X-Git-Tag: v4.4-rc1~76 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce5c2d2c256a4c8b523036537cd6be2d6af8f69d;p=platform%2Fkernel%2Flinux-exynos.git arm64: fixup for mm renames __GFP_WAIT was renamed for __GFP_RECLAIM and the gfpflags_allow_blocking() helper was added. Cc: Stephen Rothwell Cc: Catalin Marinas Cc: Robin Murphy Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c index bb4bf6a..131a199 100644 --- a/arch/arm64/mm/dma-mapping.c +++ b/arch/arm64/mm/dma-mapping.c @@ -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);