]> git.baikalelectronics.ru Git - kernel.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)
commit9bd552a1913bdb560a019354dc893a14343541a2
treeca583bc58b6be9f93f67b587efd1c0ae2bd6fd33
parent80fea97b6b51a6ed86ce33d71c1c08b0566a788a
iommu/arm-smmu-v3: Drop __GFP_ZERO flag from DMA allocation

Since commit 00f1c0702d66 ("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 73cf87dae83b ("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