]> git.baikalelectronics.ru Git - kernel.git/commit
dma-mapping: remove dma_zalloc_coherent()
authorLuis Chamberlain <mcgrof@kernel.org>
Wed, 19 Dec 2018 20:30:34 +0000 (12:30 -0800)
committerChristoph Hellwig <hch@lst.de>
Tue, 8 Jan 2019 12:58:49 +0000 (07:58 -0500)
commit0bd7b1655b64e371ee6b14b39363c7e91fad6755
tree7d72650db6c1fe3ee4122edccc0af7b1b264e369
parent032de467c2ab6acd09b215200a69bc7a317d88b0
dma-mapping: remove dma_zalloc_coherent()

dma_zalloc_coherent() is no longer needed as it has no users because
dma_alloc_coherent() already zeroes out memory for us.

The Coccinelle grammar rule that used to check for dma_alloc_coherent()
+ memset() is modified so that it just tells the user that the memset is
not needed anymore.

Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/dma-mapping.h
scripts/coccinelle/api/alloc/alloc_cast.cocci
scripts/coccinelle/api/alloc/zalloc-simple.cocci