Skip to contentSkip to conversation

pci_dma_mapping_error changes

PATCH Applied Marin Mitov 4 participants 4 messages Sep 18, 2008 – Sep 23, 2008 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pci_dma_mapping_error changes

Make the example code consistent with changed API.

===================================================

Documentation/DMA-mapping.txt +1 -1
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 1 line · On Thu, 18 Sep 2008 08:12:25 +0300 Marin Mitov <[email protected]> wrote:

Make the example code consistent with changed API.

Thanks,

Quoted 1 line
Quoted 18 lines

===================================================

Documentation/DMA-mapping.txt +1 -2
@@ -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
--

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Acked-by on v1 1/1
#2 lore raw
In reply to Marin Mitov
Quoted 8 lines · Marin Mitov

Make the example code consistent with changed API.

===================================================

Documentation/DMA-mapping.txt failure can be determined by: · line 746

Quoted 8 lines
Documentation/DMA-mapping.txt +1 -1
@@ -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
Applied
#3 lore raw
Quoted 10 lines · Jeff Garzik

Make the example code consistent with changed API.

===================================================

Documentation/DMA-mapping.txt failure can be determined by: · line 746

Quoted 8 lines
Documentation/DMA-mapping.txt +1 -1
@@ -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

Applied to linux-next, thanks.

Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center