IB/core: Remove ib_sg_dma_address() and ib_sg_dma_len()
[linux-block.git] / net / rds / ib.h
index 71ff356ee7020d881b35d71747076f28530cb5e7..1fd1cac85da2d469e1263e14be201db9816149db 100644 (file)
@@ -331,10 +331,8 @@ static inline void rds_ib_dma_sync_sg_for_cpu(struct ib_device *dev,
        unsigned int i;
 
        for_each_sg(sglist, sg, sg_dma_len, i) {
-               ib_dma_sync_single_for_cpu(dev,
-                               ib_sg_dma_address(dev, sg),
-                               ib_sg_dma_len(dev, sg),
-                               direction);
+               ib_dma_sync_single_for_cpu(dev, sg_dma_address(sg),
+                                          sg_dma_len(sg), direction);
        }
 }
 #define ib_dma_sync_sg_for_cpu rds_ib_dma_sync_sg_for_cpu
@@ -348,10 +346,8 @@ static inline void rds_ib_dma_sync_sg_for_device(struct ib_device *dev,
        unsigned int i;
 
        for_each_sg(sglist, sg, sg_dma_len, i) {
-               ib_dma_sync_single_for_device(dev,
-                               ib_sg_dma_address(dev, sg),
-                               ib_sg_dma_len(dev, sg),
-                               direction);
+               ib_dma_sync_single_for_device(dev, sg_dma_address(sg),
+                                             sg_dma_len(sg), direction);
        }
 }
 #define ib_dma_sync_sg_for_device      rds_ib_dma_sync_sg_for_device