]> git.baikalelectronics.ru Git - kernel.git/commit
drm: allow removal of legacy codepaths (v4.1)
authorDave Airlie <airlied@redhat.com>
Thu, 18 Apr 2019 07:10:40 +0000 (17:10 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 24 Apr 2019 02:33:15 +0000 (12:33 +1000)
commit7c9d7ffb8550208c954bc7ab400605fa0263364c
tree037c9119c6c97c362294c24bc7d890a679c0bdd3
parent7b31c2f031582e7390203220514d21c45d2ae626
drm: allow removal of legacy codepaths (v4.1)

If you don't want the legacy drivers, then lets get rid of all the
legacy codepaths from the core module.

This drop the size of drm.ko for me by about 10%.
 380515    7422    4192  392129   5fbc1 ../../drm-next-build/drivers/gpu/drm/drm.ko
 351736    7298    4192  363226   58ada ../../drm-next-build/drivers/gpu/drm/drm.ko

v2: drop drm_lock as well, fix some DMA->DRM typos
v3: avoid ifdefs in mainline code
v4: rework ioctl defs
v4.1: fix nouveau Kconfig

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/Makefile
drivers/gpu/drm/drm_internal.h
drivers/gpu/drm/drm_ioc32.c
drivers/gpu/drm/drm_ioctl.c
drivers/gpu/drm/drm_irq.c
drivers/gpu/drm/drm_legacy.h
drivers/gpu/drm/drm_vm.c
drivers/gpu/drm/nouveau/Kconfig