]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: Try to check if new ttm man out of bounds during compile
authorxinhui pan <xinhui.pan@amd.com>
Mon, 13 Sep 2021 08:09:50 +0000 (16:09 +0800)
committerChristian König <christian.koenig@amd.com>
Mon, 13 Sep 2021 08:14:28 +0000 (10:14 +0200)
commit4982ecf4e3cb930cc29f51f104decf2ec2df48c3
tree63bf0a1dc124e0b0ddd5387077fb8a7b9112c216
parent4e09cef1adc5b62970056670e9c22fdab905d294
drm/ttm: Try to check if new ttm man out of bounds during compile

Allow TTM know if vendor set new ttm mananger out of bounds by adding
build_bug_on.

Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210913080950.180752-1-xinhui.pan@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/ttm/ttm_range_manager.c
include/drm/ttm/ttm_device.h
include/drm/ttm/ttm_range_manager.h