diff options
author | Sui Jingfeng <suijingfeng@loongson.cn> | 2023-10-07 09:03:12 +0200 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2024-01-23 10:20:20 +0100 |
commit | 9e2e8a5113bf452081cb1f6a13617e36f5298cbf (patch) | |
tree | cf7fb795b3a4c3f8836c204b74df216ef198600a | |
parent | drm/etnaviv: Clean up etnaviv_gem_get_pages (diff) | |
download | linux-9e2e8a5113bf452081cb1f6a13617e36f5298cbf.tar.xz linux-9e2e8a5113bf452081cb1f6a13617e36f5298cbf.zip |
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>
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_mmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_mmu.c b/drivers/gpu/drm/etnaviv/etnaviv_mmu.c index 4fa72567183a..1661d589bf3e 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_mmu.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_mmu.c @@ -70,7 +70,7 @@ static int etnaviv_context_map(struct etnaviv_iommu_context *context, } static int etnaviv_iommu_map(struct etnaviv_iommu_context *context, u32 iova, - struct sg_table *sgt, unsigned len, int prot) + struct sg_table *sgt, int prot) { struct scatterlist *sg; unsigned int da = iova; unsigned int i; @@ -314,7 +314,7 @@ int etnaviv_iommu_map_gem(struct etnaviv_iommu_context *context, goto unlock; mapping->iova = node->start; - ret = etnaviv_iommu_map(context, node->start, sgt, etnaviv_obj->base.size, + ret = etnaviv_iommu_map(context, node->start, sgt, ETNAVIV_PROT_READ | ETNAVIV_PROT_WRITE); if (ret < 0) { |