drm/exynos: gem: Fix sparse warning
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 13 Jul 2020 07:07:08 +0000 (09:07 +0200)
committerInki Dae <daeinki@gmail.com>
Wed, 26 Aug 2020 07:03:05 +0000 (16:03 +0900)
commitd4035d104313cc43b34381b585a7407f069a5132
tree66b2fadf54e04d54a88f0ce61031ca31b52d413c
parentd012a7190fc1fd72ed48911e77ca97ba4521bccd
drm/exynos: gem: Fix sparse warning

kvaddr element of the exynos_gem object points to a memory buffer, thus
it should not have a __iomem annotation. Then, to avoid a warning or
casting on assignment to fbi structure, the screen_buffer element of the
union should be used instead of the screen_base.

Reported-by: kernel test robot <lkp@intel.com>
Suggested-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fbdev.c
drivers/gpu/drm/exynos/exynos_drm_gem.h