On Tue, Jan 12, 2021 at 09:10:33AM +0100, Thomas Zimmermann wrote: > CONFIG_DRM_VM gets selected by CONFIG_DRM_LEGACY, but nothing else. So > remove it and build drm_vm.o as part of CONFIG_DRM_LEGACY. > > Signed-off-by: Thomas Zimmermann <tzimmermann@xxxxxxx> > --- > drivers/gpu/drm/Kconfig | 5 ----- > drivers/gpu/drm/Makefile | 3 +-- > drivers/gpu/drm/drm_legacy.h | 2 +- > 3 files changed, 2 insertions(+), 8 deletions(-) > > diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig > index 0973f408d75f..8bf103de1594 100644 > --- a/drivers/gpu/drm/Kconfig > +++ b/drivers/gpu/drm/Kconfig > @@ -214,10 +214,6 @@ config DRM_GEM_SHMEM_HELPER > help > Choose this if you need the GEM shmem helper functions > > -config DRM_VM > - bool > - depends on DRM && MMU > - > config DRM_SCHED > tristate > depends on DRM > @@ -391,7 +387,6 @@ source "drivers/gpu/drm/xlnx/Kconfig" > menuconfig DRM_LEGACY > bool "Enable legacy drivers (DANGEROUS)" > depends on DRM && MMU Ah we already depend upon MMU here, so should be all good. Reviewed-by: Daniel Vetter <daniel.vetter@xxxxxxxx> > - 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 > diff --git a/drivers/gpu/drm/Makefile b/drivers/gpu/drm/Makefile > index ba0ecb7756c6..926adef289db 100644 > --- a/drivers/gpu/drm/Makefile > +++ b/drivers/gpu/drm/Makefile > @@ -21,9 +21,8 @@ drm-y := drm_auth.o drm_cache.o \ > drm_managed.o drm_vblank_work.o > > drm-$(CONFIG_DRM_LEGACY) += drm_bufs.o drm_context.o drm_dma.o drm_legacy_misc.o drm_lock.o \ > - drm_memory.o drm_scatter.o > + drm_memory.o drm_scatter.o drm_vm.o > drm-$(CONFIG_DRM_LIB_RANDOM) += lib/drm_random.o > -drm-$(CONFIG_DRM_VM) += drm_vm.o > drm-$(CONFIG_COMPAT) += drm_ioc32.o > drm-$(CONFIG_DRM_GEM_CMA_HELPER) += drm_gem_cma_helper.o > drm-$(CONFIG_DRM_GEM_SHMEM_HELPER) += drm_gem_shmem_helper.o > diff --git a/drivers/gpu/drm/drm_legacy.h b/drivers/gpu/drm/drm_legacy.h > index 1be3ea320474..f71358f9eac9 100644 > --- a/drivers/gpu/drm/drm_legacy.h > +++ b/drivers/gpu/drm/drm_legacy.h > @@ -127,7 +127,7 @@ static inline void drm_legacy_master_rmmaps(struct drm_device *dev, > static inline void drm_legacy_rmmaps(struct drm_device *dev) {} > #endif > > -#if IS_ENABLED(CONFIG_DRM_VM) && IS_ENABLED(CONFIG_DRM_LEGACY) > +#if IS_ENABLED(CONFIG_DRM_LEGACY) > void drm_legacy_vma_flush(struct drm_device *d); > #else > static inline void drm_legacy_vma_flush(struct drm_device *d) > -- > 2.29.2 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel