]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Compile time enabling for asserts in drm_mm
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 22 Dec 2016 08:36:06 +0000 (08:36 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 27 Dec 2016 11:29:41 +0000 (12:29 +0100)
commit9f9eafc247d033e86529ccda44fa4c9269cf4a06
treea83aa9ad241ffe2af888f57535a56b70850b5999
parentc04d649a8cc0129bf908f926807233b7f0f7a2e3
drm: Compile time enabling for asserts in drm_mm

Use CONFIG_DRM_DEBUG_MM to conditionally enable the internal and
validation checking using BUG_ON. Ideally these paths should all be
exercised by CI selftests (with the asserts enabled).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161222083641.2691-4-chris@chris-wilson.co.uk
Link: http://patchwork.freedesktop.org/patch/msgid/20161222083641.2691-4-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_mm.c
include/drm/drm_mm.h