summaryrefslogtreecommitdiffstats
path: root/net/rds/ib_frmr.c
diff options
context:
space:
mode:
authorBart Van Assche2019-01-31 17:30:34 +0100
committerJason Gunthorpe2019-02-04 22:34:07 +0100
commita163afc88556e099271a7b423295bc5176fcecce (patch)
tree312a999860e60137b96e69b7b62b9c90a4d82e21 /net/rds/ib_frmr.c
parentIB/mlx5: Advertise XRC ODP support (diff)
downloadkernel-qcow2-linux-a163afc88556e099271a7b423295bc5176fcecce.tar.gz
kernel-qcow2-linux-a163afc88556e099271a7b423295bc5176fcecce.tar.xz
kernel-qcow2-linux-a163afc88556e099271a7b423295bc5176fcecce.zip
IB/core: Remove ib_sg_dma_address() and ib_sg_dma_len()
Keeping single line wrapper functions is not useful. Hence remove the ib_sg_dma_address() and ib_sg_dma_len() functions. This patch does not change any functionality. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'net/rds/ib_frmr.c')
-rw-r--r--net/rds/ib_frmr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rds/ib_frmr.c b/net/rds/ib_frmr.c
index 6431a023ac89..688dcd68d4ea 100644
--- a/net/rds/ib_frmr.c
+++ b/net/rds/ib_frmr.c
@@ -181,8 +181,8 @@ static int rds_ib_map_frmr(struct rds_ib_device *rds_ibdev,
ret = -EINVAL;
for (i = 0; i < ibmr->sg_dma_len; ++i) {
- unsigned int dma_len = ib_sg_dma_len(dev, &ibmr->sg[i]);
- u64 dma_addr = ib_sg_dma_address(dev, &ibmr->sg[i]);
+ unsigned int dma_len = sg_dma_len(&ibmr->sg[i]);
+ u64 dma_addr = sg_dma_address(&ibmr->sg[i]);
frmr->sg_byte_len += dma_len;
if (dma_addr & ~PAGE_MASK) {