]> Git Repo - linux.git/commit
mm/cma: remove unsupported gfp_mask parameter from cma_alloc()
authorMarek Szyprowski <[email protected]>
Fri, 17 Aug 2018 22:48:57 +0000 (15:48 -0700)
committerLinus Torvalds <[email protected]>
Fri, 17 Aug 2018 23:20:32 +0000 (16:20 -0700)
commit6518202970c1052148daaef9a8096711775e43a2
tree31719115058e9c681cf648b2fbc849c285ff356a
parent50c150f26261e723523f077a67378736fa7511a4
mm/cma: remove unsupported gfp_mask parameter from cma_alloc()

cma_alloc() doesn't really support gfp flags other than __GFP_NOWARN, so
convert gfp_mask parameter to boolean no_warn parameter.

This will help to avoid giving false feeling that this function supports
standard gfp flags and callers can pass __GFP_ZERO to get zeroed buffer,
what has already been an issue: see commit dd65a941f6ba ("arm64:
dma-mapping: clear buffers allocated with FORCE_CONTIGUOUS flag").

Link: http://lkml.kernel.org/r/20180709122019eucas1p2340da484acfcc932537e6014f4fd2c29~-sqTPJKij2939229392eucas1p2j@eucas1p2.samsung.com
Signed-off-by: Marek Szyprowski <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Acked-by: MichaƂ Nazarewicz <[email protected]>
Acked-by: Laura Abbott <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/powerpc/kvm/book3s_hv_builtin.c
drivers/s390/char/vmcp.c
drivers/staging/android/ion/ion_cma_heap.c
include/linux/cma.h
kernel/dma/contiguous.c
mm/cma.c
mm/cma_debug.c
This page took 0.064503 seconds and 4 git commands to generate.