Re: [PATCH net-next 1/1] forcedeth: replace pci_alloc_consistent with dma_alloc_coherent

2017-10-31 Thread David Miller
From: Zhu Yanjun Date: Sat, 28 Oct 2017 08:25:30 -0400 > The functions pci_alloc_consistent is obsolete. So it is replaced > with dma_alloc_coherent > > Signed-off-by: Zhu Yanjun Applied, thanks.

RE: [PATCH net-next 1/1] forcedeth: replace pci_alloc_consistent with dma_alloc_coherent

2017-10-30 Thread David Laight
From: Zhu Yanjun > Sent: 28 October 2017 13:26 > The functions pci_alloc_consistent is obsolete. So it is replaced > with dma_alloc_coherent ... > + dma_free_coherent(&np->pci_dev->dev, > + sizeof(struct ring_desc) * > +

[PATCH net-next 1/1] forcedeth: replace pci_alloc_consistent with dma_alloc_coherent

2017-10-28 Thread Zhu Yanjun
The functions pci_alloc_consistent is obsolete. So it is replaced with dma_alloc_coherent Signed-off-by: Zhu Yanjun --- drivers/net/ethernet/nvidia/forcedeth.c | 61 ++--- 1 file changed, 41 insertions(+), 20 deletions(-) diff --git a/drivers/net/ethernet/nvidia/forc