summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorChristoph Hellwig2017-12-22 16:05:15 +0100
committerChristoph Hellwig2018-01-15 09:34:55 +0100
commit57bf5a8963f80fb3828c46c3e3a5b2dd790e09a7 (patch)
tree17ccc31f02cbc09c8a51c8b95acf50f0b62e366b /arch/powerpc
parentdma-mapping: warn when there is no coherent_dma_mask (diff)
downloadkernel-qcow2-linux-57bf5a8963f80fb3828c46c3e3a5b2dd790e09a7.tar.gz
kernel-qcow2-linux-57bf5a8963f80fb3828c46c3e3a5b2dd790e09a7.tar.xz
kernel-qcow2-linux-57bf5a8963f80fb3828c46c3e3a5b2dd790e09a7.zip
dma-mapping: clear harmful GFP_* flags in common code
Lift the code from x86 so that we behave consistently. In the future we should probably warn if any of these is set. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Jesper Nilsson <jesper.nilsson@axis.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> [m68k]
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kernel/dma.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/dma.c b/arch/powerpc/kernel/dma.c
index 6d5d04ccf3b4..76079841d3d0 100644
--- a/arch/powerpc/kernel/dma.c
+++ b/arch/powerpc/kernel/dma.c
@@ -105,9 +105,6 @@ void *__dma_nommu_alloc_coherent(struct device *dev, size_t size,
};
#endif /* CONFIG_FSL_SOC */
- /* ignore region specifiers */
- flag &= ~(__GFP_HIGHMEM);
-
page = alloc_pages_node(node, flag, get_order(size));
if (page == NULL)
return NULL;