drm: Move EXPORT_SYMBOL_FOR_TESTS_ONLY under a separate Kconfig
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Nov 2019 18:05:57 +0000 (18:05 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Nov 2019 21:22:15 +0000 (21:22 +0000)
commit6349120ddcbf6267cc4467ee01f852f7bd0cdd42
tree3ff62c04615e36e5c5e9942a3599098f2450a86d
parent27dbae8f36c1c25008b7885fc07c57054b7dfba3
drm: Move EXPORT_SYMBOL_FOR_TESTS_ONLY under a separate Kconfig

Currently, we only export symbols for drm-selftests which are either
compiled as modules or into the main drm builtin. However, if we want to
export symbols from drm.ko for the drivers' selftests, we require a
means of controlling that export separately. So we add a new Kconfig to
determine whether or not the EXPORT_SYMBOL_FOR_TESTS_ONLY() takes
effect.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20191107180601.30815-1-chris@chris-wilson.co.uk
drivers/gpu/drm/Kconfig
include/drm/drm_util.h