]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Kill user_modes list and the associated ioctls
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 26 Apr 2013 14:40:28 +0000 (17:40 +0300)
committerDave Airlie <airlied@redhat.com>
Tue, 30 Apr 2013 00:03:07 +0000 (10:03 +1000)
commitc5f0382549f29f4d97cb357f2908671dde29b63b
tree240e093507676748e5cd1b52433d7e10523b5636
parent0b2b20038bb8654836dadb8b0544e0a2510a9ed5
drm: Kill user_modes list and the associated ioctls

There is no way to use modes added to the user_modes list. We never
look at the contents of said list in the kernel, and the only operations
userspace can do are attach and detach. So the only "benefit" of this
interface is wasting kernel memory.

Fortunately it seems no real user space application ever used these
ioctls. So just kill them.

Also remove the prototypes for the non-existing drm_mode_addmode_ioctl()
and drm_mode_rmmode_ioctl() functions.

v2: Use drm_noop instead of completely removing the ioctls

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_drv.c
include/drm/drm_crtc.h
include/uapi/drm/drm.h