diff options
Diffstat (limited to 'drivers/char/drm/drm_ioctl.c')
-rw-r--r-- | drivers/char/drm/drm_ioctl.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/char/drm/drm_ioctl.c b/drivers/char/drm/drm_ioctl.c index 96b982f1f4a4..afc355318f6a 100644 --- a/drivers/char/drm/drm_ioctl.c +++ b/drivers/char/drm/drm_ioctl.c | |||
@@ -54,8 +54,8 @@ int drm_getunique(struct inode *inode, struct file *filp, | |||
54 | { | 54 | { |
55 | drm_file_t *priv = filp->private_data; | 55 | drm_file_t *priv = filp->private_data; |
56 | drm_device_t *dev = priv->head->dev; | 56 | drm_device_t *dev = priv->head->dev; |
57 | drm_unique_t __user *argp = (void __user *)arg; | 57 | struct drm_unique __user *argp = (void __user *)arg; |
58 | drm_unique_t u; | 58 | struct drm_unique u; |
59 | 59 | ||
60 | if (copy_from_user(&u, argp, sizeof(u))) | 60 | if (copy_from_user(&u, argp, sizeof(u))) |
61 | return -EFAULT; | 61 | return -EFAULT; |
@@ -88,13 +88,13 @@ int drm_setunique(struct inode *inode, struct file *filp, | |||
88 | { | 88 | { |
89 | drm_file_t *priv = filp->private_data; | 89 | drm_file_t *priv = filp->private_data; |
90 | drm_device_t *dev = priv->head->dev; | 90 | drm_device_t *dev = priv->head->dev; |
91 | drm_unique_t u; | 91 | struct drm_unique u; |
92 | int domain, bus, slot, func, ret; | 92 | int domain, bus, slot, func, ret; |
93 | 93 | ||
94 | if (dev->unique_len || dev->unique) | 94 | if (dev->unique_len || dev->unique) |
95 | return -EBUSY; | 95 | return -EBUSY; |
96 | 96 | ||
97 | if (copy_from_user(&u, (drm_unique_t __user *) arg, sizeof(u))) | 97 | if (copy_from_user(&u, (struct drm_unique __user *) arg, sizeof(u))) |
98 | return -EFAULT; | 98 | return -EFAULT; |
99 | 99 | ||
100 | if (!u.unique_len || u.unique_len > 1024) | 100 | if (!u.unique_len || u.unique_len > 1024) |
@@ -186,8 +186,8 @@ int drm_getmap(struct inode *inode, struct file *filp, | |||
186 | { | 186 | { |
187 | drm_file_t *priv = filp->private_data; | 187 | drm_file_t *priv = filp->private_data; |
188 | drm_device_t *dev = priv->head->dev; | 188 | drm_device_t *dev = priv->head->dev; |
189 | drm_map_t __user *argp = (void __user *)arg; | 189 | struct drm_map __user *argp = (void __user *)arg; |
190 | drm_map_t map; | 190 | struct drm_map map; |
191 | drm_map_list_t *r_list = NULL; | 191 | drm_map_list_t *r_list = NULL; |
192 | struct list_head *list; | 192 | struct list_head *list; |
193 | int idx; | 193 | int idx; |
@@ -247,8 +247,8 @@ int drm_getclient(struct inode *inode, struct file *filp, | |||
247 | { | 247 | { |
248 | drm_file_t *priv = filp->private_data; | 248 | drm_file_t *priv = filp->private_data; |
249 | drm_device_t *dev = priv->head->dev; | 249 | drm_device_t *dev = priv->head->dev; |
250 | drm_client_t __user *argp = (drm_client_t __user *)arg; | 250 | struct drm_client __user *argp = (struct drm_client __user *)arg; |
251 | drm_client_t client; | 251 | struct drm_client client; |
252 | drm_file_t *pt; | 252 | drm_file_t *pt; |
253 | int idx; | 253 | int idx; |
254 | int i; | 254 | int i; |
@@ -296,7 +296,7 @@ int drm_getstats(struct inode *inode, struct file *filp, | |||
296 | { | 296 | { |
297 | drm_file_t *priv = filp->private_data; | 297 | drm_file_t *priv = filp->private_data; |
298 | drm_device_t *dev = priv->head->dev; | 298 | drm_device_t *dev = priv->head->dev; |
299 | drm_stats_t stats; | 299 | struct drm_stats stats; |
300 | int i; | 300 | int i; |
301 | 301 | ||
302 | memset(&stats, 0, sizeof(stats)); | 302 | memset(&stats, 0, sizeof(stats)); |
@@ -316,7 +316,7 @@ int drm_getstats(struct inode *inode, struct file *filp, | |||
316 | 316 | ||
317 | mutex_unlock(&dev->struct_mutex); | 317 | mutex_unlock(&dev->struct_mutex); |
318 | 318 | ||
319 | if (copy_to_user((drm_stats_t __user *) arg, &stats, sizeof(stats))) | 319 | if (copy_to_user((struct drm_stats __user *) arg, &stats, sizeof(stats))) |
320 | return -EFAULT; | 320 | return -EFAULT; |
321 | return 0; | 321 | return 0; |
322 | } | 322 | } |
@@ -335,10 +335,10 @@ int drm_getstats(struct inode *inode, struct file *filp, | |||
335 | int drm_setversion(DRM_IOCTL_ARGS) | 335 | int drm_setversion(DRM_IOCTL_ARGS) |
336 | { | 336 | { |
337 | DRM_DEVICE; | 337 | DRM_DEVICE; |
338 | drm_set_version_t sv; | 338 | struct drm_set_version sv; |
339 | drm_set_version_t retv; | 339 | struct drm_set_version retv; |
340 | int if_version; | 340 | int if_version; |
341 | drm_set_version_t __user *argp = (void __user *)data; | 341 | struct drm_set_version __user *argp = (void __user *)data; |
342 | int ret; | 342 | int ret; |
343 | 343 | ||
344 | if (copy_from_user(&sv, argp, sizeof(sv))) | 344 | if (copy_from_user(&sv, argp, sizeof(sv))) |