* [PATCH] ppc32: Add missing [pci_]dma_mapping_error()
@ 2004-05-05 6:16 Benjamin Herrenschmidt
0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2004-05-05 6:16 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linus Torvalds, Linux Kernel list
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-05-05 6:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-05 6:16 [PATCH] ppc32: Add missing [pci_]dma_mapping_error() Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox