[PATCH]pci_dma_mapping_error changes

Previous thread: Re: execve errno setting on MIPS by Halesh S on Wednesday, September 17, 2008 - 10:34 pm. (1 message)

Next thread: change TOS explicitly for egress packets on specified network interface by gshan on Wednesday, September 17, 2008 - 10:41 pm. (1 message)
From: Marin Mitov
Date: Wednesday, September 17, 2008 - 10:12 pm

Make the example code consistent with changed API.

Signed-off-by: Marin Mitov <mitov@ispp.bas.bg>

===================================================
--- a/Documentation/DMA-mapping.txt	2008-09-14 11:34:48.000000000 +0300
+++ b/Documentation/DMA-mapping.txt	2008-09-14 11:37:17.000000000 +0300
@@ -740,7 +740,7 @@ failure can be determined by:
 	dma_addr_t dma_handle;
 
 	dma_handle = pci_map_single(pdev, addr, size, direction);
-	if (pci_dma_mapping_error(dma_handle)) {
+	if (pci_dma_mapping_error(pdev, dma_handle)) {
 		/*
 		 * reduce current DMA mapping usage,
 		 * delay and try again later or
--

From: FUJITA Tomonori
Date: Thursday, September 18, 2008 - 7:06 am

On Thu, 18 Sep 2008 08:12:25 +0300


--

From: Jeff Garzik
Date: Thursday, September 18, 2008 - 9:11 am

Acked-by: Jeff Garzik <jgarzik@redhat.com>

--

From: Jesse Barnes
Date: Tuesday, September 23, 2008 - 2:26 pm

Applied to linux-next, thanks.

-- 
Jesse Barnes, Intel Open Source Technology Center
--

Previous thread: Re: execve errno setting on MIPS by Halesh S on Wednesday, September 17, 2008 - 10:34 pm. (1 message)

Next thread: change TOS explicitly for egress packets on specified network interface by gshan on Wednesday, September 17, 2008 - 10:41 pm. (1 message)