remap_vmalloc_range clenaups
Subsystems (4)
Hi Andrew,
this series removes an open coded instance of remap_vmalloc_range and removes the unused remap_vmalloc_range_partial export.
PATCH 1/2 samples/vfio-mdev/mdpy: use remap_vmalloc_range
Use remap_vmalloc_range instead of open coding it using remap_vmalloc_range_partial.
Signed-off-by Christoph Hellwig <[email protected]>
--- samples/vfio-mdev/mdpy.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
samples/vfio-mdev/mdpy.c +1 -3
@@ -417,9 +417,7 @@ static int mdpy_mmap(struct mdev_device *mdev, struct vm_area_struct *vma)if ((vma->vm_flags &VM_SHARED ) ==0 )return -EINVAL ; -return remap_vmalloc_range_partial (vma, vma->vm_start, - mdev_state->memblk,0 , - vma->vm_end - vma->vm_start); +return remap_vmalloc_range (vma, mdev_state->memblk,0 ); } static int mdpy_get_region_info(struct mdev_device *mdev,
Signature · 1 line
2.29.2
PATCH 2/2 mm: unexport remap_vmalloc_range_partial
In reply to Christoph Hellwigremap_vmalloc_range_partial is only used to implement remap_vmalloc_range and by procfs. Unexport it.
Signed-off-by Christoph Hellwig <[email protected]>
--- mm/vmalloc.c | 1 - 1 file changed, 1 deletion(-)
mm/vmalloc.c +0 -1
@@ -3072,7 +3072,6 @@ int remap_vmalloc_range_partial(struct vm_area_struct *vma, unsigned long uaddr,return 0 ; } -EXPORT_SYMBOL (remap_vmalloc_range_partial);/** * remap_vmalloc_range - map vmalloc pages to userspace
Signature · 1 line
2.29.2