summaryrefslogtreecommitdiff
path: root/arch/mn10300
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-12-22 18:05:15 +0300
committerChristoph Hellwig <hch@lst.de>2018-01-15 11:34:55 +0300
commit57bf5a8963f80fb3828c46c3e3a5b2dd790e09a7 (patch)
tree17ccc31f02cbc09c8a51c8b95acf50f0b62e366b /arch/mn10300
parent205e1b7f51e4af2643eb1d61a6503e415cd1e014 (diff)
downloadlinux-57bf5a8963f80fb3828c46c3e3a5b2dd790e09a7.tar.xz
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/mn10300')
-rw-r--r--arch/mn10300/mm/dma-alloc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/mn10300/mm/dma-alloc.c b/arch/mn10300/mm/dma-alloc.c
index 86108d2496b3..e3910d4db102 100644
--- a/arch/mn10300/mm/dma-alloc.c
+++ b/arch/mn10300/mm/dma-alloc.c
@@ -37,9 +37,6 @@ static void *mn10300_dma_alloc(struct device *dev, size_t size,
goto done;
}
- /* ignore region specifiers */
- gfp &= ~(__GFP_DMA | __GFP_HIGHMEM);
-
if (dev == NULL || dev->coherent_dma_mask < 0xffffffff)
gfp |= GFP_DMA;