Skip to contentSkip to conversation

Remove duplicated pci_dma_mapping_error function

PATCH Applied Art Haas 2 participants 3 messages Jul 28, 2004

lore
Share & tools
lore

Art Haas

author
#0 lore raw

PATCH 1/1 Remove duplicated pci_dma_mapping_error function

Here's a patch to remove the older version of the function. The patch is untested as yet, as the kernel build with this patch is just beginning. The patch is against the current BK.

Art Haas

=== include/asm-sparc/pci.h 1.16 vs edited ==--- 1.16/include/asm-sparc/pci.h 2004-07-21 15:44:22 -05:00
+++ edited/include/asm-sparc/pci.h 2004-07-28 10:05:02 -05:00
@@ -87,12 +87,6 @@
extern void pci_unmap_page(struct pci_dev *hwdev,
dma_addr_t dma_address, size_t size, int direction);

-/* map_page and map_single cannot fail */
-static inline int pci_dma_mapping_error(dma_addr_t dma_addr) -{
- return 0;
-}
-
/* Map a set of buffers described by scatterlist in streaming
* mode for DMA. This is the scather-gather version of the
* above pci_map_single interface. Here the scatter gather list

Signature · 4 lines
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822
author
#2 lore raw
In reply to Art Haas

Replying to my mail about the patch, the kernel built successfully and my SS20 is now running 2.6.8-rc2+.

Signature · 4 lines
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822