diff options
author | Luis Chamberlain <mcgrof@kernel.org> | 2018-12-19 23:24:08 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2019-01-08 15:58:49 +0300 |
commit | 07a85fe14254e01bcf37f4d2e0a13f093378620b (patch) | |
tree | 5b67c9b3fe40e5d8b6f3da3572909403d4d1bf21 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h | |
parent | 750afb08ca71310fcf0c4e2cb1565c63b8235b60 (diff) | |
download | linux-07a85fe14254e01bcf37f4d2e0a13f093378620b.tar.xz |
cross-tree: phase out dma_zalloc_coherent() on headers
The last few stragglers coccinelle doesn't pick up are on driver
specific header files. Phase those out as well as dma_alloc_coherent()
zeroes out the memory as well now too.
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h index 142bc11b9fbb..2462e7aa0c5d 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h @@ -52,7 +52,7 @@ extern int bnx2x_num_queues; #define BNX2X_PCI_ALLOC(y, size) \ ({ \ - void *x = dma_zalloc_coherent(&bp->pdev->dev, size, y, GFP_KERNEL); \ + void *x = dma_alloc_coherent(&bp->pdev->dev, size, y, GFP_KERNEL); \ if (x) \ DP(NETIF_MSG_HW, \ "BNX2X_PCI_ALLOC: Physical %Lx Virtual %p\n", \ |