Skip to content

Commit ff4f65e

Browse files
Deming Wangawilliam
authored andcommitted
vfio/spapr_tce: Remove the unused parameters container
The parameter of container has been unused for tce_iommu_unuse_page. So, we should delete it. Signed-off-by: Deming Wang <[email protected]> Reviewed-by: Alexey Kardashevskiy <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alex Williamson <[email protected]>
1 parent 7654a88 commit ff4f65e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

drivers/vfio/vfio_iommu_spapr_tce.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,7 @@ static void tce_iommu_release(void *iommu_data)
378378
kfree(container);
379379
}
380380

381-
static void tce_iommu_unuse_page(struct tce_container *container,
382-
unsigned long hpa)
381+
static void tce_iommu_unuse_page(unsigned long hpa)
383382
{
384383
struct page *page;
385384

@@ -474,7 +473,7 @@ static int tce_iommu_clear(struct tce_container *container,
474473
continue;
475474
}
476475

477-
tce_iommu_unuse_page(container, oldhpa);
476+
tce_iommu_unuse_page(oldhpa);
478477
}
479478

480479
iommu_tce_kill(tbl, firstentry, pages);
@@ -524,15 +523,15 @@ static long tce_iommu_build(struct tce_container *container,
524523
ret = iommu_tce_xchg_no_kill(container->mm, tbl, entry + i,
525524
&hpa, &dirtmp);
526525
if (ret) {
527-
tce_iommu_unuse_page(container, hpa);
526+
tce_iommu_unuse_page(hpa);
528527
pr_err("iommu_tce: %s failed ioba=%lx, tce=%lx, ret=%ld\n",
529528
__func__, entry << tbl->it_page_shift,
530529
tce, ret);
531530
break;
532531
}
533532

534533
if (dirtmp != DMA_NONE)
535-
tce_iommu_unuse_page(container, hpa);
534+
tce_iommu_unuse_page(hpa);
536535

537536
tce += IOMMU_PAGE_SIZE(tbl);
538537
}

0 commit comments

Comments
 (0)