patch-2.4.21 linux-2.4.21/include/asm-i386/pci.h
Next file: linux-2.4.21/include/asm-i386/processor.h
Previous file: linux-2.4.21/include/asm-i386/msr.h
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
2003-06-13 07:51:38.000000000 -0700
- Orig file:
linux-2.4.20/include/asm-i386/pci.h
- Orig date:
2002-08-02 17:39:45.000000000 -0700
diff -urN linux-2.4.20/include/asm-i386/pci.h linux-2.4.21/include/asm-i386/pci.h
@@ -103,7 +103,9 @@
if (direction == PCI_DMA_NONE)
out_of_line_bug();
- return (dma_addr_t)(page - mem_map) * PAGE_SIZE + offset;
+ return ((dma_addr_t)(page - mem_map) *
+ (dma_addr_t) PAGE_SIZE +
+ (dma_addr_t) offset);
}
static inline void pci_unmap_page(struct pci_dev *hwdev, dma_addr_t dma_address,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)