[openib-general] [PATCH] make cmatose compile
Michael S. Tsirkin
mst at mellanox.co.il
Tue Feb 28 05:46:10 PST 2006
Make cmatose compile under 2.6.15
Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>
Index: drivers/infiniband/util/cmatose/cmatose.c
===================================================================
--- drivers/infiniband/util/cmatose/cmatose.c (revision 5525)
+++ drivers/infiniband/util/cmatose/cmatose.c (working copy)
@@ -137,7 +137,7 @@
node->mem = mem;
node->addr = dma_map_single(node->cma_id->device->dma_device,
node->mem, message_size, DMA_TO_DEVICE);
- pci_unmap_addr_set(&node, mapping, node->addr);
+ pci_unmap_addr_set(node, mapping, node->addr);
return 0;
out:
kfree(mem);
@@ -385,7 +385,7 @@
if (node->mem) {
dma_unmap_single(node->cma_id->device->dma_device,
- pci_unmap_addr(&node, mapping),
+ pci_unmap_addr(node, mapping),
message_size, DMA_TO_DEVICE);
ib_dereg_mr(node->mr);
kfree(node->mem);
--
Michael S. Tsirkin
Staff Engineer, Mellanox Technologies
More information about the general
mailing list