OSDN Git Service

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)
commit617d5b34f22c66fe9fc9f150be27f5de1b87ca15
tree63bf0a1dc124e0b0ddd5387077fb8a7b9112c216
parentd4cb82aa2e4bc0e46582a625cb41b64c83fdde49
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