drm/amdgpu: fix compile error on architecture s390 (v2)
authorOak Zeng <Oak.Zeng@amd.com>
Wed, 10 Mar 2021 19:09:42 +0000 (13:09 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 03:29:21 +0000 (23:29 -0400)
commitf10083703c4ebcdad67143124c8bafa46013c04c
treef5b6e03874d9d21a53ded9fb44d96a091d14ff9a
parent6dffd9dce94f1b68d68a4c073a95cc6a634df4a3
drm/amdgpu: fix compile error on architecture s390 (v2)

ioremap_cache is not supported on some architecture
such as s390. Put the codes into a #ifdef to fix
some compile error reported by test robot.

v2: squash in non-x86 fix

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Reported-by: Kernel test robot <lkp@intel.com>
Reviewed-by: Christian Konig <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c