OSDN Git Service

dma-mapping: clear harmful GFP_* flags in common code
authorChristoph Hellwig <hch@lst.de>
Fri, 22 Dec 2017 15:05:15 +0000 (16:05 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 15 Jan 2018 08:34:55 +0000 (09:34 +0100)
commit57bf5a8963f80fb3828c46c3e3a5b2dd790e09a7
tree17ccc31f02cbc09c8a51c8b95acf50f0b62e366b
parent205e1b7f51e4af2643eb1d61a6503e415cd1e014
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]
12 files changed:
arch/cris/arch-v32/drivers/pci/dma.c
arch/h8300/kernel/dma.c
arch/m68k/kernel/dma.c
arch/mips/cavium-octeon/dma-octeon.c
arch/mips/loongson64/common/dma-swiotlb.c
arch/mips/mm/dma-default.c
arch/mips/netlogic/common/nlm-dma.c
arch/mn10300/mm/dma-alloc.c
arch/nios2/mm/dma-mapping.c
arch/powerpc/kernel/dma.c
arch/x86/kernel/pci-dma.c
include/linux/dma-mapping.h