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)
commitdfd32cad146e3624970eee9329e99d2c6ef751b3
tree7d72650db6c1fe3ee4122edccc0af7b1b264e369
parent07a85fe14254e01bcf37f4d2e0a13f093378620b
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