mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Acked-by: Jesper Nilsson <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]> [m68k]
This commit is contained in:
parent
205e1b7f51
commit
57bf5a8963
12 changed files with 7 additions and 31 deletions
|
|
@ -63,9 +63,6 @@ static void *nios2_dma_alloc(struct device *dev, size_t size,
|
|||
{
|
||||
void *ret;
|
||||
|
||||
/* ignore region specifiers */
|
||||
gfp &= ~(__GFP_DMA | __GFP_HIGHMEM);
|
||||
|
||||
/* optimized page clearing */
|
||||
gfp |= __GFP_ZERO;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue