[PATCH 37/54] drm: Fix type definition for drm_compat_ioctl_t

Chris Wilson chris at chris-wilson.co.uk
Sun Jun 4 12:08:20 UTC 2017


Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 drivers/gpu/drm/drm_ioc32.c           | 112 +++++++++++++++++-----------------
 drivers/gpu/drm/i915/i915_ioc32.c     |   4 +-
 drivers/gpu/drm/mga/mga_ioc32.c       |  12 ++--
 drivers/gpu/drm/r128/r128_ioc32.c     |  16 ++---
 drivers/gpu/drm/radeon/radeon_ioc32.c |  40 ++++++------
 include/drm/drm_ioctl.h               |   5 +-
 6 files changed, 95 insertions(+), 94 deletions(-)

diff --git a/drivers/gpu/drm/drm_ioc32.c b/drivers/gpu/drm/drm_ioc32.c
index ae386783e3ea..086d4092c3ca 100644
--- a/drivers/gpu/drm/drm_ioc32.c
+++ b/drivers/gpu/drm/drm_ioc32.c
@@ -83,8 +83,8 @@ typedef struct drm_version_32 {
 	u32 desc;		  /* User-space buffer to hold desc */
 } drm_version32_t;
 
-static int compat_drm_version(struct file *file, unsigned int cmd,
-			      unsigned long arg)
+static long compat_drm_version(struct file *file, unsigned int cmd,
+			       unsigned long arg)
 {
 	drm_version32_t v32;
 	struct drm_version __user *version;
@@ -130,8 +130,8 @@ typedef struct drm_unique32 {
 	u32 unique;	/* Unique name for driver instantiation */
 } drm_unique32_t;
 
-static int compat_drm_getunique(struct file *file, unsigned int cmd,
-				unsigned long arg)
+static long compat_drm_getunique(struct file *file, unsigned int cmd,
+				 unsigned long arg)
 {
 	drm_unique32_t uq32;
 	struct drm_unique __user *u;
@@ -159,8 +159,8 @@ static int compat_drm_getunique(struct file *file, unsigned int cmd,
 	return 0;
 }
 
-static int compat_drm_setunique(struct file *file, unsigned int cmd,
-				unsigned long arg)
+static long compat_drm_setunique(struct file *file, unsigned int cmd,
+				 unsigned long arg)
 {
 	drm_unique32_t uq32;
 	struct drm_unique __user *u;
@@ -188,8 +188,8 @@ typedef struct drm_map32 {
 	int mtrr;		/* MTRR slot used */
 } drm_map32_t;
 
-static int compat_drm_getmap(struct file *file, unsigned int cmd,
-			     unsigned long arg)
+static long compat_drm_getmap(struct file *file, unsigned int cmd,
+			      unsigned long arg)
 {
 	drm_map32_t __user *argp = (void __user *)arg;
 	drm_map32_t m32;
@@ -225,8 +225,8 @@ static int compat_drm_getmap(struct file *file, unsigned int cmd,
 
 }
 
-static int compat_drm_addmap(struct file *file, unsigned int cmd,
-			     unsigned long arg)
+static long compat_drm_addmap(struct file *file, unsigned int cmd,
+			      unsigned long arg)
 {
 	drm_map32_t __user *argp = (void __user *)arg;
 	drm_map32_t m32;
@@ -266,8 +266,8 @@ static int compat_drm_addmap(struct file *file, unsigned int cmd,
 	return 0;
 }
 
-static int compat_drm_rmmap(struct file *file, unsigned int cmd,
-			    unsigned long arg)
+static long compat_drm_rmmap(struct file *file, unsigned int cmd,
+			     unsigned long arg)
 {
 	drm_map32_t __user *argp = (void __user *)arg;
 	struct drm_map __user *map;
@@ -294,8 +294,8 @@ typedef struct drm_client32 {
 	u32 iocs;	/* Ioctl count */
 } drm_client32_t;
 
-static int compat_drm_getclient(struct file *file, unsigned int cmd,
-				unsigned long arg)
+static long compat_drm_getclient(struct file *file, unsigned int cmd,
+				 unsigned long arg)
 {
 	drm_client32_t c32;
 	drm_client32_t __user *argp = (void __user *)arg;
@@ -336,8 +336,8 @@ typedef struct drm_stats32 {
 	} data[15];
 } drm_stats32_t;
 
-static int compat_drm_getstats(struct file *file, unsigned int cmd,
-			       unsigned long arg)
+static long compat_drm_getstats(struct file *file, unsigned int cmd,
+				unsigned long arg)
 {
 	drm_stats32_t s32;
 	drm_stats32_t __user *argp = (void __user *)arg;
@@ -374,8 +374,8 @@ typedef struct drm_buf_desc32 {
 	u32 agp_start;		 /* Start address in the AGP aperture */
 } drm_buf_desc32_t;
 
-static int compat_drm_addbufs(struct file *file, unsigned int cmd,
-			      unsigned long arg)
+static long compat_drm_addbufs(struct file *file, unsigned int cmd,
+			       unsigned long arg)
 {
 	drm_buf_desc32_t __user *argp = (void __user *)arg;
 	struct drm_buf_desc __user *buf;
@@ -403,8 +403,8 @@ static int compat_drm_addbufs(struct file *file, unsigned int cmd,
 	return 0;
 }
 
-static int compat_drm_markbufs(struct file *file, unsigned int cmd,
-			       unsigned long arg)
+static long compat_drm_markbufs(struct file *file, unsigned int cmd,
+				unsigned long arg)
 {
 	drm_buf_desc32_t b32;
 	drm_buf_desc32_t __user *argp = (void __user *)arg;
@@ -430,8 +430,8 @@ typedef struct drm_buf_info32 {
 	u32 list;
 } drm_buf_info32_t;
 
-static int compat_drm_infobufs(struct file *file, unsigned int cmd,
-			       unsigned long arg)
+static long compat_drm_infobufs(struct file *file, unsigned int cmd,
+				unsigned long arg)
 {
 	drm_buf_info32_t req32;
 	drm_buf_info32_t __user *argp = (void __user *)arg;
@@ -494,8 +494,8 @@ typedef struct drm_buf_map32 {
 	u32 list;		/**< Buffer information */
 } drm_buf_map32_t;
 
-static int compat_drm_mapbufs(struct file *file, unsigned int cmd,
-			      unsigned long arg)
+static long compat_drm_mapbufs(struct file *file, unsigned int cmd,
+			       unsigned long arg)
 {
 	drm_buf_map32_t __user *argp = (void __user *)arg;
 	drm_buf_map32_t req32;
@@ -552,8 +552,8 @@ typedef struct drm_buf_free32 {
 	u32 list;
 } drm_buf_free32_t;
 
-static int compat_drm_freebufs(struct file *file, unsigned int cmd,
-			       unsigned long arg)
+static long compat_drm_freebufs(struct file *file, unsigned int cmd,
+				unsigned long arg)
 {
 	drm_buf_free32_t req32;
 	struct drm_buf_free __user *request;
@@ -578,8 +578,8 @@ typedef struct drm_ctx_priv_map32 {
 	u32 handle;		/**< Handle of map */
 } drm_ctx_priv_map32_t;
 
-static int compat_drm_setsareactx(struct file *file, unsigned int cmd,
-				  unsigned long arg)
+static long compat_drm_setsareactx(struct file *file, unsigned int cmd,
+				   unsigned long arg)
 {
 	drm_ctx_priv_map32_t req32;
 	struct drm_ctx_priv_map __user *request;
@@ -599,8 +599,8 @@ static int compat_drm_setsareactx(struct file *file, unsigned int cmd,
 	return drm_ioctl(file, DRM_IOCTL_SET_SAREA_CTX, (unsigned long)request);
 }
 
-static int compat_drm_getsareactx(struct file *file, unsigned int cmd,
-				  unsigned long arg)
+static long compat_drm_getsareactx(struct file *file, unsigned int cmd,
+				   unsigned long arg)
 {
 	struct drm_ctx_priv_map __user *request;
 	drm_ctx_priv_map32_t __user *argp = (void __user *)arg;
@@ -634,8 +634,8 @@ typedef struct drm_ctx_res32 {
 	u32 contexts;
 } drm_ctx_res32_t;
 
-static int compat_drm_resctx(struct file *file, unsigned int cmd,
-			     unsigned long arg)
+static long compat_drm_resctx(struct file *file, unsigned int cmd,
+			      unsigned long arg)
 {
 	drm_ctx_res32_t __user *argp = (void __user *)arg;
 	drm_ctx_res32_t res32;
@@ -677,8 +677,8 @@ typedef struct drm_dma32 {
 	int granted_count;	  /**< Number of buffers granted */
 } drm_dma32_t;
 
-static int compat_drm_dma(struct file *file, unsigned int cmd,
-			  unsigned long arg)
+static long compat_drm_dma(struct file *file, unsigned int cmd,
+			   unsigned long arg)
 {
 	drm_dma32_t d32;
 	drm_dma32_t __user *argp = (void __user *)arg;
@@ -724,8 +724,8 @@ typedef struct drm_agp_mode32 {
 	u32 mode;	/**< AGP mode */
 } drm_agp_mode32_t;
 
-static int compat_drm_agp_enable(struct file *file, unsigned int cmd,
-				 unsigned long arg)
+static long compat_drm_agp_enable(struct file *file, unsigned int cmd,
+				  unsigned long arg)
 {
 	drm_agp_mode32_t __user *argp = (void __user *)arg;
 	drm_agp_mode32_t m32;
@@ -755,8 +755,8 @@ typedef struct drm_agp_info32 {
 	unsigned short id_device;
 } drm_agp_info32_t;
 
-static int compat_drm_agp_info(struct file *file, unsigned int cmd,
-			       unsigned long arg)
+static long compat_drm_agp_info(struct file *file, unsigned int cmd,
+				unsigned long arg)
 {
 	drm_agp_info32_t __user *argp = (void __user *)arg;
 	drm_agp_info32_t i32;
@@ -795,8 +795,8 @@ typedef struct drm_agp_buffer32 {
 	u32 physical;	/**< Physical used by i810 */
 } drm_agp_buffer32_t;
 
-static int compat_drm_agp_alloc(struct file *file, unsigned int cmd,
-				unsigned long arg)
+static long compat_drm_agp_alloc(struct file *file, unsigned int cmd,
+				 unsigned long arg)
 {
 	drm_agp_buffer32_t __user *argp = (void __user *)arg;
 	drm_agp_buffer32_t req32;
@@ -826,8 +826,8 @@ static int compat_drm_agp_alloc(struct file *file, unsigned int cmd,
 	return 0;
 }
 
-static int compat_drm_agp_free(struct file *file, unsigned int cmd,
-			       unsigned long arg)
+static long compat_drm_agp_free(struct file *file, unsigned int cmd,
+				unsigned long arg)
 {
 	drm_agp_buffer32_t __user *argp = (void __user *)arg;
 	struct drm_agp_buffer __user *request;
@@ -847,8 +847,8 @@ typedef struct drm_agp_binding32 {
 	u32 offset;	/**< In bytes -- will round to page boundary */
 } drm_agp_binding32_t;
 
-static int compat_drm_agp_bind(struct file *file, unsigned int cmd,
-			       unsigned long arg)
+static long compat_drm_agp_bind(struct file *file, unsigned int cmd,
+				unsigned long arg)
 {
 	drm_agp_binding32_t __user *argp = (void __user *)arg;
 	drm_agp_binding32_t req32;
@@ -866,8 +866,8 @@ static int compat_drm_agp_bind(struct file *file, unsigned int cmd,
 	return drm_ioctl(file, DRM_IOCTL_AGP_BIND, (unsigned long)request);
 }
 
-static int compat_drm_agp_unbind(struct file *file, unsigned int cmd,
-				 unsigned long arg)
+static long compat_drm_agp_unbind(struct file *file, unsigned int cmd,
+				  unsigned long arg)
 {
 	drm_agp_binding32_t __user *argp = (void __user *)arg;
 	struct drm_agp_binding __user *request;
@@ -888,8 +888,8 @@ typedef struct drm_scatter_gather32 {
 	u32 handle;	/**< Used for mapping / unmapping */
 } drm_scatter_gather32_t;
 
-static int compat_drm_sg_alloc(struct file *file, unsigned int cmd,
-			       unsigned long arg)
+static long compat_drm_sg_alloc(struct file *file, unsigned int cmd,
+				unsigned long arg)
 {
 	drm_scatter_gather32_t __user *argp = (void __user *)arg;
 	struct drm_scatter_gather __user *request;
@@ -914,8 +914,8 @@ static int compat_drm_sg_alloc(struct file *file, unsigned int cmd,
 	return 0;
 }
 
-static int compat_drm_sg_free(struct file *file, unsigned int cmd,
-			      unsigned long arg)
+static long compat_drm_sg_free(struct file *file, unsigned int cmd,
+			       unsigned long arg)
 {
 	drm_scatter_gather32_t __user *argp = (void __user *)arg;
 	struct drm_scatter_gather __user *request;
@@ -939,8 +939,8 @@ typedef struct drm_update_draw32 {
 	u64 data;	/**< Pointer */
 } __attribute__((packed)) drm_update_draw32_t;
 
-static int compat_drm_update_draw(struct file *file, unsigned int cmd,
-				  unsigned long arg)
+static long compat_drm_update_draw(struct file *file, unsigned int cmd,
+				   unsigned long arg)
 {
 	drm_update_draw32_t update32;
 	struct drm_update_draw __user *request;
@@ -980,8 +980,8 @@ typedef union drm_wait_vblank32 {
 	struct drm_wait_vblank_reply32 reply;
 } drm_wait_vblank32_t;
 
-static int compat_drm_wait_vblank(struct file *file, unsigned int cmd,
-				  unsigned long arg)
+static long compat_drm_wait_vblank(struct file *file, unsigned int cmd,
+				   unsigned long arg)
 {
 	drm_wait_vblank32_t __user *argp = (void __user *)arg;
 	drm_wait_vblank32_t req32;
@@ -1027,8 +1027,8 @@ typedef struct drm_mode_fb_cmd232 {
 	u64 modifier[4];
 } __attribute__((packed)) drm_mode_fb_cmd232_t;
 
-static int compat_drm_mode_addfb2(struct file *file, unsigned int cmd,
-				  unsigned long arg)
+static long compat_drm_mode_addfb2(struct file *file, unsigned int cmd,
+				   unsigned long arg)
 {
 	struct drm_mode_fb_cmd232 __user *argp = (void __user *)arg;
 	struct drm_mode_fb_cmd232 req32;
diff --git a/drivers/gpu/drm/i915/i915_ioc32.c b/drivers/gpu/drm/i915/i915_ioc32.c
index 97f3a5640289..9034c4c302e2 100644
--- a/drivers/gpu/drm/i915/i915_ioc32.c
+++ b/drivers/gpu/drm/i915/i915_ioc32.c
@@ -45,8 +45,8 @@ struct drm_i915_getparam32 {
 	u32 value;
 };
 
-static int compat_i915_getparam(struct file *file, unsigned int cmd,
-				unsigned long arg)
+static long compat_i915_getparam(struct file *file, unsigned int cmd,
+				 unsigned long arg)
 {
 	struct drm_i915_getparam32 req32;
 	drm_i915_getparam_t __user *request;
diff --git a/drivers/gpu/drm/mga/mga_ioc32.c b/drivers/gpu/drm/mga/mga_ioc32.c
index 729bfd56b55f..a28fab8a9cfb 100644
--- a/drivers/gpu/drm/mga/mga_ioc32.c
+++ b/drivers/gpu/drm/mga/mga_ioc32.c
@@ -57,8 +57,8 @@ typedef struct drm32_mga_init {
 	u32 buffers_offset;
 } drm_mga_init32_t;
 
-static int compat_mga_init(struct file *file, unsigned int cmd,
-			   unsigned long arg)
+static long compat_mga_init(struct file *file, unsigned int cmd,
+			    unsigned long arg)
 {
 	drm_mga_init32_t init32;
 	drm_mga_init_t __user *init;
@@ -108,8 +108,8 @@ typedef struct drm_mga_getparam32 {
 	u32 value;
 } drm_mga_getparam32_t;
 
-static int compat_mga_getparam(struct file *file, unsigned int cmd,
-			       unsigned long arg)
+static long compat_mga_getparam(struct file *file, unsigned int cmd,
+				unsigned long arg)
 {
 	drm_mga_getparam32_t getparam32;
 	drm_mga_getparam_t __user *getparam;
@@ -137,8 +137,8 @@ typedef struct drm_mga_drm_bootstrap32 {
 	u8 agp_size;
 } drm_mga_dma_bootstrap32_t;
 
-static int compat_mga_dma_bootstrap(struct file *file, unsigned int cmd,
-				    unsigned long arg)
+static long compat_mga_dma_bootstrap(struct file *file, unsigned int cmd,
+				     unsigned long arg)
 {
 	drm_mga_dma_bootstrap32_t dma_bootstrap32;
 	drm_mga_dma_bootstrap_t __user *dma_bootstrap;
diff --git a/drivers/gpu/drm/r128/r128_ioc32.c b/drivers/gpu/drm/r128/r128_ioc32.c
index 663f38c63ba6..8a40964be10b 100644
--- a/drivers/gpu/drm/r128/r128_ioc32.c
+++ b/drivers/gpu/drm/r128/r128_ioc32.c
@@ -59,8 +59,8 @@ typedef struct drm_r128_init32 {
 	unsigned int agp_textures_offset;
 } drm_r128_init32_t;
 
-static int compat_r128_init(struct file *file, unsigned int cmd,
-			    unsigned long arg)
+static long compat_r128_init(struct file *file, unsigned int cmd,
+			     unsigned long arg)
 {
 	drm_r128_init32_t init32;
 	drm_r128_init_t __user *init;
@@ -107,8 +107,8 @@ typedef struct drm_r128_depth32 {
 	u32 mask;
 } drm_r128_depth32_t;
 
-static int compat_r128_depth(struct file *file, unsigned int cmd,
-			     unsigned long arg)
+static long compat_r128_depth(struct file *file, unsigned int cmd,
+			      unsigned long arg)
 {
 	drm_r128_depth32_t depth32;
 	drm_r128_depth_t __user *depth;
@@ -136,8 +136,8 @@ typedef struct drm_r128_stipple32 {
 	u32 mask;
 } drm_r128_stipple32_t;
 
-static int compat_r128_stipple(struct file *file, unsigned int cmd,
-			       unsigned long arg)
+static long compat_r128_stipple(struct file *file, unsigned int cmd,
+				unsigned long arg)
 {
 	drm_r128_stipple32_t stipple32;
 	drm_r128_stipple_t __user *stipple;
@@ -159,8 +159,8 @@ typedef struct drm_r128_getparam32 {
 	u32 value;
 } drm_r128_getparam32_t;
 
-static int compat_r128_getparam(struct file *file, unsigned int cmd,
-				unsigned long arg)
+static long compat_r128_getparam(struct file *file, unsigned int cmd,
+				 unsigned long arg)
 {
 	drm_r128_getparam32_t getparam32;
 	drm_r128_getparam_t __user *getparam;
diff --git a/drivers/gpu/drm/radeon/radeon_ioc32.c b/drivers/gpu/drm/radeon/radeon_ioc32.c
index 0b98ea134579..85cc1f0c04ee 100644
--- a/drivers/gpu/drm/radeon/radeon_ioc32.c
+++ b/drivers/gpu/drm/radeon/radeon_ioc32.c
@@ -56,8 +56,8 @@ typedef struct drm_radeon_init32 {
 	u32 gart_textures_offset;
 } drm_radeon_init32_t;
 
-static int compat_radeon_cp_init(struct file *file, unsigned int cmd,
-				 unsigned long arg)
+static long compat_radeon_cp_init(struct file *file, unsigned int cmd,
+				  unsigned long arg)
 {
 	drm_radeon_init32_t init32;
 	drm_radeon_init_t __user *init;
@@ -103,8 +103,8 @@ typedef struct drm_radeon_clear32 {
 	u32 depth_boxes;
 } drm_radeon_clear32_t;
 
-static int compat_radeon_cp_clear(struct file *file, unsigned int cmd,
-				  unsigned long arg)
+static long compat_radeon_cp_clear(struct file *file, unsigned int cmd,
+				   unsigned long arg)
 {
 	drm_radeon_clear32_t clr32;
 	drm_radeon_clear_t __user *clr;
@@ -130,8 +130,8 @@ typedef struct drm_radeon_stipple32 {
 	u32 mask;
 } drm_radeon_stipple32_t;
 
-static int compat_radeon_cp_stipple(struct file *file, unsigned int cmd,
-				    unsigned long arg)
+static long compat_radeon_cp_stipple(struct file *file, unsigned int cmd,
+				     unsigned long arg)
 {
 	drm_radeon_stipple32_t __user *argp = (void __user *)arg;
 	drm_radeon_stipple_t __user *request;
@@ -164,8 +164,8 @@ typedef struct drm_radeon_texture32 {
 	u32 image;
 } drm_radeon_texture32_t;
 
-static int compat_radeon_cp_texture(struct file *file, unsigned int cmd,
-				    unsigned long arg)
+static long compat_radeon_cp_texture(struct file *file, unsigned int cmd,
+				     unsigned long arg)
 {
 	drm_radeon_texture32_t req32;
 	drm_radeon_texture_t __user *request;
@@ -212,8 +212,8 @@ typedef struct drm_radeon_vertex2_32 {
 	u32 prim;
 } drm_radeon_vertex2_32_t;
 
-static int compat_radeon_cp_vertex2(struct file *file, unsigned int cmd,
-				    unsigned long arg)
+static long compat_radeon_cp_vertex2(struct file *file, unsigned int cmd,
+				     unsigned long arg)
 {
 	drm_radeon_vertex2_32_t req32;
 	drm_radeon_vertex2_t __user *request;
@@ -243,8 +243,8 @@ typedef struct drm_radeon_cmd_buffer32 {
 	u32 boxes;
 } drm_radeon_cmd_buffer32_t;
 
-static int compat_radeon_cp_cmdbuf(struct file *file, unsigned int cmd,
-				   unsigned long arg)
+static long compat_radeon_cp_cmdbuf(struct file *file, unsigned int cmd,
+				    unsigned long arg)
 {
 	drm_radeon_cmd_buffer32_t req32;
 	drm_radeon_cmd_buffer_t __user *request;
@@ -270,8 +270,8 @@ typedef struct drm_radeon_getparam32 {
 	u32 value;
 } drm_radeon_getparam32_t;
 
-static int compat_radeon_cp_getparam(struct file *file, unsigned int cmd,
-				     unsigned long arg)
+static long compat_radeon_cp_getparam(struct file *file, unsigned int cmd,
+				      unsigned long arg)
 {
 	drm_radeon_getparam32_t req32;
 	drm_radeon_getparam_t __user *request;
@@ -296,8 +296,8 @@ typedef struct drm_radeon_mem_alloc32 {
 	u32 region_offset;	/* offset from start of fb or GART */
 } drm_radeon_mem_alloc32_t;
 
-static int compat_radeon_mem_alloc(struct file *file, unsigned int cmd,
-				   unsigned long arg)
+static long compat_radeon_mem_alloc(struct file *file, unsigned int cmd,
+				    unsigned long arg)
 {
 	drm_radeon_mem_alloc32_t req32;
 	drm_radeon_mem_alloc_t __user *request;
@@ -321,8 +321,8 @@ typedef struct drm_radeon_irq_emit32 {
 	u32 irq_seq;
 } drm_radeon_irq_emit32_t;
 
-static int compat_radeon_irq_emit(struct file *file, unsigned int cmd,
-				  unsigned long arg)
+static long compat_radeon_irq_emit(struct file *file, unsigned int cmd,
+				   unsigned long arg)
 {
 	drm_radeon_irq_emit32_t req32;
 	drm_radeon_irq_emit_t __user *request;
@@ -346,8 +346,8 @@ typedef struct drm_radeon_setparam32 {
 	u64 value;
 } __attribute__((packed)) drm_radeon_setparam32_t;
 
-static int compat_radeon_cp_setparam(struct file *file, unsigned int cmd,
-				     unsigned long arg)
+static long compat_radeon_cp_setparam(struct file *file, unsigned int cmd,
+				      unsigned long arg)
 {
 	drm_radeon_setparam32_t req32;
 	drm_radeon_setparam_t __user *request;
diff --git a/include/drm/drm_ioctl.h b/include/drm/drm_ioctl.h
index c420481d2078..072c97192b76 100644
--- a/include/drm/drm_ioctl.h
+++ b/include/drm/drm_ioctl.h
@@ -64,8 +64,9 @@ typedef int drm_ioctl_t(struct drm_device *dev, void *data,
  * New drivers shouldn't screw up the structure layout for their ioctl
  * structures and hence never need this.
  */
-typedef int drm_ioctl_compat_t(struct file *filp, unsigned int cmd,
-			       unsigned long arg);
+typedef long drm_ioctl_compat_t(struct file *filp,
+				unsigned int cmd,
+				unsigned long arg);
 
 #define DRM_IOCTL_NR(n)                _IOC_NR(n)
 #define DRM_MAJOR       226
-- 
2.11.0



More information about the Intel-gfx-trybot mailing list