projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8491f0
)
drm/etnaviv: Drop the 'len' parameter of etnaviv_iommu_map() function
author
Sui Jingfeng
<suijingfeng@loongson.cn>
Sat, 7 Oct 2023 07:03:12 +0000
(15:03 +0800)
committer
Lucas Stach
<l.stach@pengutronix.de>
Tue, 23 Jan 2024 09:20:20 +0000
(10:20 +0100)
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>
drivers/gpu/drm/etnaviv/etnaviv_mmu.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/etnaviv/etnaviv_mmu.c
b/drivers/gpu/drm/etnaviv/etnaviv_mmu.c
index 4fa72567183a8e138683f8c072c219974e1befa8..1661d589bf3e7f4acb2ab8d9c1c9e0cb2f95492c 100644
(file)
--- 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) {