diff options
author | Benjamin Gaignard <benjamin.gaignard@linaro.org> | 2017-01-04 10:12:56 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-01-06 11:03:07 +0100 |
commit | 99c48e1e38f0aeaa107ad67c8d91f6c9d9d567a9 (patch) | |
tree | 35576adbd3b982d6cf0b4017b36b0973bec87d0a /drivers/gpu/drm/Kconfig | |
parent | 82f42e4cc164ed486c9e2b1b74e65b176830d947 (diff) | |
download | op-kernel-dev-99c48e1e38f0aeaa107ad67c8d91f6c9d9d567a9.zip op-kernel-dev-99c48e1e38f0aeaa107ad67c8d91f6c9d9d567a9.tar.gz |
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>
Diffstat (limited to 'drivers/gpu/drm/Kconfig')
-rw-r--r-- | drivers/gpu/drm/Kconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig index 29146fa..d56b85c 100644 --- a/drivers/gpu/drm/Kconfig +++ b/drivers/gpu/drm/Kconfig @@ -136,6 +136,10 @@ config DRM_KMS_CMA_HELPER help Choose this if you need the KMS CMA helper functions +config DRM_VM + bool + depends on DRM + source "drivers/gpu/drm/i2c/Kconfig" source "drivers/gpu/drm/arm/Kconfig" @@ -264,6 +268,7 @@ source "drivers/gpu/drm/meson/Kconfig" menuconfig DRM_LEGACY bool "Enable legacy drivers (DANGEROUS)" depends on DRM + select DRM_VM help Enable legacy DRI1 drivers. Those drivers expose unsafe and dangerous APIs to user-space, which can be used to circumvent access |