drm: Restrict stackdepot usage to builtin drm.ko
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 8 Nov 2016 13:19:17 +0000 (13:19 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 9 Nov 2016 01:13:43 +0000 (02:13 +0100)
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: kbuild test robot <fengguang.wu@intel.com>
Fixes: 5705670d0463 ("drm: Track drm_mm allocators and show leaks on shutdown")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161108131917.6253-2-chris@chris-wilson.co.uk
drivers/gpu/drm/Kconfig

index 25e8e3793d294f25f41026cac06abbaffd810f01..d6ee0592b62560e451cc8040894467f9e4d2752b 100644 (file)
@@ -36,7 +36,7 @@ config DRM_DP_AUX_CHARDEV
 config DRM_DEBUG_MM
        bool "Insert extra checks and debug info into the DRM range managers"
        default n
-       depends on DRM
+       depends on DRM=y
        select STACKDEPOT
        help
          Enable allocation tracking of memory manager and leak detection on