]> git.baikalelectronics.ru Git - kernel.git/commit
drm: compile drm_vm.c only when needed
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Wed, 4 Jan 2017 09:12:56 +0000 (10:12 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 6 Jan 2017 10:03:07 +0000 (11:03 +0100)
commit99c48e1e38f0aeaa107ad67c8d91f6c9d9d567a9
tree35576adbd3b982d6cf0b4017b36b0973bec87d0a
parent82f42e4cc164ed486c9e2b1b74e65b176830d947
drm: compile drm_vm.c only when needed

drm_vm.c functions are only need for DRM_LEGACY and DRM_NOUVEAU.
Use a new DRM_VM to define when drm_vm.c in needed.

stub drm_legacy_vma_flush() to avoid compilation issues

version 4:
- a "config DRM_VM" in Kconfig

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
[danvet: Fix conflict.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/Kconfig
drivers/gpu/drm/Makefile
drivers/gpu/drm/drm_legacy.h
drivers/gpu/drm/nouveau/Kconfig