From 7c123103a4d42d2bffd0fc0a403e3daa8c491dd4 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Tue, 4 May 2004 18:13:57 -0700 Subject: [PATCH] [PATCH] ppc32: Add missing [pci_]dma_mapping_error() Those were missing from ppc32, please apply. --- include/asm-ppc/dma-mapping.h | 6 ++++++ include/asm-ppc/pci.h | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/include/asm-ppc/dma-mapping.h b/include/asm-ppc/dma-mapping.h index 1e8d91927097..80b5e0b9a68b 100644 --- a/include/asm-ppc/dma-mapping.h +++ b/include/asm-ppc/dma-mapping.h @@ -184,4 +184,10 @@ static inline void dma_cache_sync(void *vaddr, size_t size, { 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 --git a/include/asm-ppc/pci.h b/include/asm-ppc/pci.h index 43e4680a72cd..2511b4327e4e 100644 --- a/include/asm-ppc/pci.h +++ b/include/asm-ppc/pci.h @@ -290,6 +290,11 @@ pci_dac_dma_sync_single_for_device(struct pci_dev *pdev, dma64_addr_t dma_addr, /* 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 -- 2.39.5