Skip to contentSkip to conversation

ppc32: Add missing [pci_]dma_mapping_error()

PATCH New Benjamin Herrenschmidt 1 participant 1 message May 5, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc32: Add missing [pci_]dma_mapping_error()

Those were missing from ppc32, please apply.

Ben.

include/asm-ppc/dma-mapping.h +6 -0
diff -urN linux-2.5/include/asm-ppc/dma-mapping.h linuxppc-2.5-benh/include/asm-ppc/dma-mapping.h
@@ -184,4 +184,10 @@
 {
 	consistent_sync(vaddr, size, (int)direction);
 }
+
+static inline int dma_mapping_error(dma_addr_t dma_addr)
+{
+	return 0;
+}
+
 #endif				/* __ASM_PPC_DMA_MAPPING_H */
include/asm-ppc/pci.h +5 -0
diff -urN linux-2.5/include/asm-ppc/pci.h linuxppc-2.5-benh/include/asm-ppc/pci.h
@@ -290,6 +290,11 @@
 	/* Nothing to do. */
 }
 
+static inline int pci_dma_mapping_error(dma_addr_t dma_addr)
+{
+	return 0;
+}
+
 /* Return the index of the PCI controller for device PDEV. */
 #define pci_domain_nr(bus) ((struct pci_controller *)(bus)->sysdata)->index