diff options
author | John Stultz <john.stultz@linaro.org> | 2020-02-25 23:41:42 +0000 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2020-02-25 23:58:46 +0000 |
commit | cff060278860cf181520453149442956c325eeb7 (patch) | |
tree | 56d59e18bac54220de974c734e021f78e9c5d867 | |
parent | a466a46809abecd6bee3c2cd2fd808dc4d998d2a (diff) |
ANDROID: drm/msm/a6xx: Make a6xx_gmu_bo.iova a dma_addr_tASB-2020-03-05_mainline
With commit 2bc6d0193f13 ("FROMLIST: drm/msm/a6xx: Use the DMA
API for GMU memory objects") it started using the iova entry in
the a6xx_gmu_bo structure as a dma_attr_t. Unfortunately this
runs into type trouble on 32 bit platforms.
Specifically:
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:943:49: error: passing
argument 3 of ‘dma_alloc_attrs’ from incompatible pointer type
[-Werror=incompatible-pointer-types]
as reported by kernelci:
https://kernelci.org/build/id/5e552216959c29be1c5ea41a/logs/
So this patch changes the type of iova to dma_addr_t to fix
these build issues.
Fixes: 2bc6d0193f13 ("FROMLIST: drm/msm/a6xx: Use the DMA API for GMU memory objects")
Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: Ia3a76acc1d501c629508bf4d10a931353a49568d
-rw-r--r-- | drivers/gpu/drm/msm/adreno/a6xx_gmu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gmu.h b/drivers/gpu/drm/msm/adreno/a6xx_gmu.h index 31bd1987db88..d10cddd009c1 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_gmu.h +++ b/drivers/gpu/drm/msm/adreno/a6xx_gmu.h @@ -12,7 +12,7 @@ struct a6xx_gmu_bo { void *virt; size_t size; - u64 iova; + dma_addr_t iova; unsigned long attrs; }; |