OSDN Git Service

drm/msm/adreno: fix sparse warnings in a6xx code
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 10 Apr 2023 22:40:34 +0000 (01:40 +0300)
committerRob Clark <robdclark@chromium.org>
Sat, 10 Jun 2023 13:46:12 +0000 (06:46 -0700)
commita52b66172927a2a7b861b34c908850d76bc33024
treedbc1c65c0d229eba69c8681db2ac749e0068eac8
parent712c76b360aa3d2a99c9597f2fba9ee117a303f6
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 <lkp@intel.com>
Link: https://lore.kernel.org/oe-kbuild-all/202304070550.NrbhJCvP-lkp@intel.com/
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/531583/
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/a6xx_gmu.h