drm/msm/adreno: fix sparse warnings in a6xx code
Subsystems (4)
PATCH v2 1/1 drm/msm/adreno: fix sparse warnings in a6xx code
Sparse reports plenty of warnings against the a6xx code because of a6xx_gmu::mmio and a6xx_gmu::rscc members. For some reason they were defined as __iomem pointers rather than pointers to __iomem memory. Correct the __iomem attribute.
Fixes 02ef80c54e7c ("drm/msm/a6xx: update pdc/rscc GMU registers for A640/A650")
Reported-by kernel test robot <[email protected]>
Reviewed-by Javier Martinez Canillas <[email protected]>
Reviewed-by Stephen Boyd <[email protected]>
Signed-off-by Dmitry Baryshkov <[email protected]>
---
Changes since v1: removed whispace after the star (Stephen)
--- drivers/gpu/drm/msm/adreno/a6xx_gmu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/msm/adreno/a6xx_gmu.h +2 -2
@@ -51,8 +51,8 @@ struct a6xx_gmu {struct msm_gem_address_space *aspace; -void *__iomem mmio; -void *__iomem rscc; +void __iomem *mmio; +void __iomem *rscc;int hfi_irq;int gmu_irq;
Signature · 1 line
2.30.2