define pci_dma_mapping_error for sparc
PATCH 1/1 define pci_dma_mapping_error for sparc
Sparc32 is missing the pci_dma_mapping_error function in pci.h, this patch adds it.
~spot
---
Tom "spot" Callaway <tcallawa(a)redhat*com> LCA, RHCE Red Hat Sales Engineer || Aurora Linux Project Leader
"If you are going through hell, keep going."
- Sir Winston Churchill
include/asm-sparc/pci.h renamed from include/asm-sparc/pci.h.BAD +7 -0
@@ -148,6 +148,13 @@ { } +#define PCI_DMA_ERROR_CODE (~(dma_addr_t)0x0) + +static inline int pci_dma_mapping_error (dma_addr_t dma_addr) +{ +return (dma_addr ==PCI_DMA_ERROR_CODE ); +} +#endif /* __KERNEL__ */ /* generic pci stuff */
Quoted 2 lines · Tom 'spot' Callaway
Sparc32 is missing the
pci_dma_mapping_errorfunction inpci.h, this patch adds it.
Ugh. Use this revision instead, sorry for the nasty whitespace.
~spot
---
Tom "spot" Callaway <tcallawa(a)redhat*com> LCA, RHCE Red Hat Sales Engineer || Aurora Linux Project Leader
"If you are going through hell, keep going."
- Sir Winston Churchill
include/asm-sparc/pci.h renamed from include/asm-sparc/pci.h.BAD +7 -0
@@ -148,6 +148,13 @@ { } +#define PCI_DMA_ERROR_CODE (~(dma_addr_t)0x0) + +static inline int pci_dma_mapping_error (dma_addr_t dma_addr) +{ +return (dma_addr ==PCI_DMA_ERROR_CODE ); +} +#endif /* __KERNEL__ */ /* generic pci stuff */
David S. Miller
AppliedQuoted 5 lines · On Mon, 12 Jul 2004 17:33:23 -0500 "Tom 'spot' Callaway" <[email protected]>…
Quoted 2 lines · Tom 'spot' Callaway
Sparc32 is missing the
pci_dma_mapping_errorfunction inpci.h, this patch adds it.Ugh. Use this revision instead, sorry for the nasty whitespace.
Applied, thanks Tom.