From: Chris Metcalf Date: Sat, 5 Jun 2010 13:05:47 +0000 (-0400) Subject: arch/tile: Do not use GFP_KERNEL for dma_alloc_coherent(). X-Git-Tag: v4.13~18134^2~18 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=482e6f8466ab1066f1a969bcdbe916b56439622c;p=mirror_ubuntu-bionic-kernel.git arch/tile: Do not use GFP_KERNEL for dma_alloc_coherent(). Feedback from fujita.tomonori@lab.ntt.co.jp. Signed-off-by: Chris Metcalf --- diff --git a/arch/tile/kernel/pci-dma.c b/arch/tile/kernel/pci-dma.c index 1d456404f065..5ad5e13b0fa6 100644 --- a/arch/tile/kernel/pci-dma.c +++ b/arch/tile/kernel/pci-dma.c @@ -35,8 +35,7 @@ void *dma_alloc_coherent(struct device *dev, struct page *pg; dma_addr_t addr; - /* Set GFP_KERNEL to ensure we have memory with a kernel VA. */ - gfp |= GFP_KERNEL | __GFP_ZERO; + gfp |= __GFP_ZERO; /* * By forcing NUMA node 0 for 32-bit masks we ensure that the