Commit cd456f8d authored by Chris Wilson's avatar Chris Wilson Committed by Daniel Vetter

drm: Restrict stackdepot usage to builtin drm.ko

I misread the kbuild result thinking that we had missed the include
(which we had for completeness anyway), what kbuild was actually warning
me about was that depot_save_stack was not exported.

Temporarily fix this by only selecting STACKDEPOT iff drm.ko is builtin
Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Fixes: 5705670d ("drm: Track drm_mm allocators and show leaks on shutdown")
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161108131917.6253-2-chris@chris-wilson.co.uk
parent 06d9f56f
...@@ -36,7 +36,7 @@ config DRM_DP_AUX_CHARDEV ...@@ -36,7 +36,7 @@ config DRM_DP_AUX_CHARDEV
config DRM_DEBUG_MM config DRM_DEBUG_MM
bool "Insert extra checks and debug info into the DRM range managers" bool "Insert extra checks and debug info into the DRM range managers"
default n default n
depends on DRM depends on DRM=y
select STACKDEPOT select STACKDEPOT
help help
Enable allocation tracking of memory manager and leak detection on Enable allocation tracking of memory manager and leak detection on
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment