aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/umem.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-11-13 08:32:14 +0100
committerJason Gunthorpe <jgg@mellanox.com>2019-11-17 10:37:00 -0400
commit72b894b09a96b741c92562709f6629310f2b34a1 (patch)
tree560772e42f397d1f77b1edfce6ff27b4efef5509 /drivers/infiniband/core/umem.c
parentdma-mapping: remove the DMA_ATTR_WRITE_BARRIER flag (diff)
downloadlinux-dev-72b894b09a96b741c92562709f6629310f2b34a1.tar.xz
linux-dev-72b894b09a96b741c92562709f6629310f2b34a1.zip
IB/umem: remove the dmasync argument to ib_umem_get
The argument is always ignored, so remove it. Link: https://lore.kernel.org/r/20191113073214.9514-3-hch@lst.de Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jason Gunthorpe <jgg@mellanox.com> Acked-by: Michal Kalderon <michal.kalderon@marvell.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/umem.c')
-rw-r--r--drivers/infiniband/core/umem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/core/umem.c b/drivers/infiniband/core/umem.c
index 66148739b00f..7a3b99597ead 100644
--- a/drivers/infiniband/core/umem.c
+++ b/drivers/infiniband/core/umem.c
@@ -185,10 +185,9 @@ EXPORT_SYMBOL(ib_umem_find_best_pgsz);
* @addr: userspace virtual address to start at
* @size: length of region to pin
* @access: IB_ACCESS_xxx flags for memory being pinned
- * @dmasync: flush in-flight DMA when the memory region is written
*/
struct ib_umem *ib_umem_get(struct ib_udata *udata, unsigned long addr,
- size_t size, int access, int dmasync)
+ size_t size, int access)
{
struct ib_ucontext *context;
struct ib_umem *umem;