iommu/io-pgtable-arm: Fix IOMMU_IO_PGTABLE_LPAE_SELFTEST compilation
Use the proper number of arguments to map_sg() Change-Id: I8f1d038334b0145436e7df86283482482ebca209 Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
This commit is contained in:
parent
0ebf274f09
commit
1ab98a5989
1 changed files with 2 additions and 1 deletions
|
@ -1369,6 +1369,7 @@ static int __init arm_lpae_run_tests(struct io_pgtable_cfg *cfg)
|
|||
/* map_sg */
|
||||
for (j = 0; j < ARRAY_SIZE(test_sg_sizes); ++j) {
|
||||
size_t mapped;
|
||||
size_t unused;
|
||||
struct page *page;
|
||||
phys_addr_t page_phys;
|
||||
struct sg_table table;
|
||||
|
@ -1391,7 +1392,7 @@ static int __init arm_lpae_run_tests(struct io_pgtable_cfg *cfg)
|
|||
sg_set_page(sg, page, chunk_size, 0);
|
||||
|
||||
mapped = ops->map_sg(ops, iova, table.sgl, table.nents,
|
||||
IOMMU_READ | IOMMU_WRITE);
|
||||
IOMMU_READ | IOMMU_WRITE, &unused);
|
||||
|
||||
if (mapped != total_size)
|
||||
return __FAIL(ops, i);
|
||||
|
|
Loading…
Add table
Reference in a new issue