]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix HMM config dependency issue
authorPhilip Yang <Philip.Yang@amd.com>
Thu, 21 Feb 2019 17:39:21 +0000 (12:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:03:49 +0000 (15:03 -0500)
commit1c327b9b84526d718cfa8091fd22ebbea4b75568
tree20d641e47bd1237ed4711b51570db11e9670b858
parent10c7796afee9bf944042e5de5ce6e42fbe4e1b5e
drm/amdgpu: fix HMM config dependency issue

Only select HMM_MIRROR will get kernel config dependency warnings
if CONFIG_HMM is missing in the config. Add depends on HMM will
solve the issue.

Add conditional compilation to fix compilation errors if HMM_MIRROR
is not enabled as HMM config is not enabled.

Remove unused function amdgpu_ttm_tt_mark_user_pages.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/Kconfig
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h