Skip to contentSkip to conversation

IB/ehca: remove ib_sg_dma_address() and ib_sg_dma_len() overloads

PATCH In review Mike Marciniszyn 1 participant 2 messages Mar 28, 2014 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 IB/ehca: remove ib_sg_dma_address() and ib_sg_dma_len() overloads

The method has been removed.

---
 drivers/infiniband/hw/ehca/ehca_mrmw.c |   12 ------------
 1 file changed, 12 deletions(-)
drivers/infiniband/hw/ehca/ehca_mrmw.c +0 -12
index bcfb0c1..65873ee 100644
@@ -2591,16 +2591,6 @@ static void ehca_dma_unmap_sg(struct ib_device *dev, struct scatterlist *sg,
 	/* This is only a stub; nothing to be done here */
 }
 
-static u64 ehca_dma_address(struct ib_device *dev, struct scatterlist *sg)
-{
-	return sg->dma_address;
-}
-
-static unsigned int ehca_dma_len(struct ib_device *dev, struct scatterlist *sg)
-{
-	return sg->length;
-}
-
 static void ehca_dma_sync_single_for_cpu(struct ib_device *dev, u64 addr,
 					 size_t size,
 					 enum dma_data_direction dir)
@@ -2653,8 +2643,6 @@ struct ib_dma_mapping_ops ehca_dma_mapping_ops = {
 	.unmap_page             = ehca_dma_unmap_page,
 	.map_sg                 = ehca_dma_map_sg,
 	.unmap_sg               = ehca_dma_unmap_sg,
-	.dma_address            = ehca_dma_address,
-	.dma_len                = ehca_dma_len,
 	.sync_single_for_cpu    = ehca_dma_sync_single_for_cpu,
 	.sync_single_for_device = ehca_dma_sync_single_for_device,
 	.alloc_coherent         = ehca_dma_alloc_coherent,

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20140328164848.7905.63538.stgit-K+u1se/DcYrLESAwzcoQNrvm/[email protected]

#2 lore raw

VGhpcyBwYXRjaCBqdXN0IGNjJ3MgZWhjYSBmb2xrcy4NCg0KU29ycnkgSSBmb3Jnb3Qgb24gZmly c3Qgb25lLg0KDQpNaWtlDQoNCj4gU3ViamVjdDogW1BBVENIIHYyXSBJQi9laGNhOiByZW1vdmUg aWJfc2dfZG1hX2FkZHJlc3MoKSBhbmQgaWJfc2dfZG1hX2xlbigpDQoNCg==
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html