Fix trivial misannotations
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 6 Jul 2017 06:00:00 +0000 (02:00 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 6 Jul 2017 06:00:00 +0000 (02:00 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/gpu/drm/drm_ioc32.c
drivers/gpu/drm/mga/mga_ioc32.c

index 94acf51092354fcf2a674f35b9cd7239159812e6..0b2d8c4a2fa528dafa96a22cd75768c643db205c 100644 (file)
@@ -343,7 +343,7 @@ static int compat_drm_markbufs(struct file *file, unsigned int cmd,
 {
        drm_buf_desc32_t b32;
        drm_buf_desc32_t __user *argp = (void __user *)arg;
-       struct drm_buf_desc __user buf;
+       struct drm_buf_desc buf;
 
        if (copy_from_user(&b32, argp, sizeof(b32)))
                return -EFAULT;
@@ -870,7 +870,7 @@ static int 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_cmd2 __user req64;
+       struct drm_mode_fb_cmd2 req64;
        int err;
 
        if (copy_from_user(&req64, argp,
index 85f1a9cd3f85995b3df271e5f6f2b8951c27b580..245fb2e359cfd29e52a26b4ddd96da486ecaacca 100644 (file)
@@ -115,7 +115,7 @@ static int 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;
+       drm_mga_dma_bootstrap_t dma_bootstrap;
        int err;
 
        if (copy_from_user(&dma_bootstrap32, (void __user *)arg,