mm/hmm: remove superfluous arguments from hmm_range_register
authorChristoph Hellwig <hch@lst.de>
Tue, 6 Aug 2019 16:05:44 +0000 (19:05 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 7 Aug 2019 17:58:05 +0000 (14:58 -0300)
commitfac555ac93d453a0d2265eef88bf4c249dd63e07
tree07bae6933286ecfc45636c5d38fd9aa378238008
parent2cbeb41913e639890bf2c6485d7bdc6a25fdfd56
mm/hmm: remove superfluous arguments from hmm_range_register

The start, end and page_shift values are all saved in the range structure,
so we might as well use that for argument passing.

Link: https://lore.kernel.org/r/20190806160554.14046-7-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Documentation/vm/hmm.rst
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/nouveau/nouveau_svm.c
include/linux/hmm.h
mm/hmm.c