]> www.infradead.org Git - users/willy/linux.git/commit
iommu/arm-smmu-v3: Drop __GFP_ZERO flag from DMA allocation
authorJean-Philippe Brucker <jean-philippe@linaro.org>
Wed, 15 Jan 2020 12:52:27 +0000 (13:52 +0100)
committerWill Deacon <will@kernel.org>
Wed, 15 Jan 2020 15:59:13 +0000 (15:59 +0000)
commit9bb9069cfba5ac9b867bebbd4c2b1fa9fa20936f
treeca583bc58b6be9f93f67b587efd1c0ae2bd6fd33
parent79f7a5cb87baa229b321246b3f33af875d8a1ef7
iommu/arm-smmu-v3: Drop __GFP_ZERO flag from DMA allocation

Since commit 518a2f1925c3 ("dma-mapping: zero memory returned from
dma_alloc_*"), dma_alloc_* always initializes memory to zero, so there
is no need to use dma_zalloc_* or pass the __GFP_ZERO flag anymore.

The flag was introduced by commit 04fa26c71be5 ("iommu/arm-smmu: Convert
DMA buffer allocations to the managed API"), since the managed API
didn't provide a dmam_zalloc_coherent() function.

Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm-smmu-v3.c