[PATCH 0/6] drm: Ioctl code cleanups

ville.syrjala at linux.intel.com ville.syrjala at linux.intel.com
Fri Mar 27 06:51:54 PDT 2015


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

In response to a recently noticed fumble with some i915 ioctls, I
proceeded to read the ioctl code again and didn't really like what
I saw. So I tried to clean it up a bit to make it less confusing.

grep also tells me the drm_ioctl pattern has been dutifully copied
into amdkfd so it could perhaps use the same treatment too, but I
don't have much interest in going there so left it alone.

Ville Syrjälä (6):
  drm: Fix DRM_IOCTL_DEF_DRV()
  drm: Drop ioctl->cmd_drv
  drm/vmwgfx: Replace VMW_IOCTL_DEF with DRM_IOCTL_DEF_DRV
  drm: Simplify core vs. drv ioctl handling
  drm: Use max() to make the ioctl alloc size code cleaner
  drm: Rewrite drm_ioctl_flags() to resemble the new drm_ioctl() code

 drivers/gpu/drm/drm_ioctl.c         |  53 ++++++--------
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 136 +++++++++++++++++-------------------
 include/drm/drmP.h                  |   3 +-
 3 files changed, 87 insertions(+), 105 deletions(-)

-- 
2.0.5



More information about the dri-devel mailing list