Skip to content

Commit 9e2e8a5

Browse files
Sui Jingfenglynxeye-dev
authored andcommitted
drm/etnaviv: Drop the 'len' parameter of etnaviv_iommu_map() function
The 'len' parameter is the 4th argument, because it is not get used, so drop it. No functional change. Signed-off-by: Sui Jingfeng <suijingfeng@loongson.cn> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
1 parent e8491f0 commit 9e2e8a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/etnaviv/etnaviv_mmu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static int etnaviv_context_map(struct etnaviv_iommu_context *context,
7070
}
7171

7272
static int etnaviv_iommu_map(struct etnaviv_iommu_context *context, u32 iova,
73-
struct sg_table *sgt, unsigned len, int prot)
73+
struct sg_table *sgt, int prot)
7474
{ struct scatterlist *sg;
7575
unsigned int da = iova;
7676
unsigned int i;
@@ -314,7 +314,7 @@ int etnaviv_iommu_map_gem(struct etnaviv_iommu_context *context,
314314
goto unlock;
315315

316316
mapping->iova = node->start;
317-
ret = etnaviv_iommu_map(context, node->start, sgt, etnaviv_obj->base.size,
317+
ret = etnaviv_iommu_map(context, node->start, sgt,
318318
ETNAVIV_PROT_READ | ETNAVIV_PROT_WRITE);
319319

320320
if (ret < 0) {

0 commit comments

Comments
 (0)