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

From: Benjamin Herrenschmidt
Date: Wed May 05 2004 - 01:21:58 EST


Those were missing from ppc32, please apply.

Ben.

diff -urN linux-2.5/include/asm-ppc/dma-mapping.h linuxppc-2.5-benh/include/asm-ppc/dma-mapping.h
--- linux-2.5/include/asm-ppc/dma-mapping.h 2004-05-03 09:30:28.000000000 +1000
+++ linuxppc-2.5-benh/include/asm-ppc/dma-mapping.h 2004-05-04 15:06:15.000000000 +1000
@@ -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 */
diff -urN linux-2.5/include/asm-ppc/pci.h linuxppc-2.5-benh/include/asm-ppc/pci.h
--- linux-2.5/include/asm-ppc/pci.h 2004-05-03 09:30:28.000000000 +1000
+++ linuxppc-2.5-benh/include/asm-ppc/pci.h 2004-05-04 15:06:23.000000000 +1000
@@ -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



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