]> 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)
commit3fd729293cb5736b51769dfef7cb70021dac18f5
tree63bf0a1dc124e0b0ddd5387077fb8a7b9112c216
parent0d320c68790fde08750ca3f352a4348f595e3517
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