[Intel-gfx] [PATCH 2/4] drm/i915: Convert i915 to use ioctl_register/ioctl_deregister.

Joonas Lahtinen joonas.lahtinen at linux.intel.com
Fri Sep 29 11:29:39 UTC 2017


On Mon, 2017-09-04 at 18:16 +0300, Marius Vlad wrote:
> From: Marius Vlad <marius.vlad0 at gmail.com>
> 
> Signed-off-by: Marius Vlad <marius.vlad0 at gmail.com>
> Signed-off-by: Marius-Adrian Negreanu <groleo at gmail.com>

<SNIP>

> @@ -1183,6 +1183,71 @@ static void i915_driver_cleanup_hw(struct drm_i915_private *dev_priv)
>  	i915_ggtt_cleanup_hw(dev_priv);
>  }
>  
> +static int
> +i915_gem_reject_pin_ioctl(struct drm_device *dev, void *data,
> +			  struct drm_file *file)
> +{
> +	return -ENODEV;
> +}
> +
> +static struct drm_ioctl_desc i915_ioctls[] = {

This becomes non-const, with no obvious benefit?

Regards, Joonas
-- 
Joonas Lahtinen
Open Source Technology Center
Intel Corporation


More information about the dri-devel mailing list