Skip to content

Commit b87b786

Browse files
author
Al Viro
committed
Fix trivial misannotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent aeba039 commit b87b786

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/gpu/drm/drm_ioc32.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ static int compat_drm_markbufs(struct file *file, unsigned int cmd,
343343
{
344344
drm_buf_desc32_t b32;
345345
drm_buf_desc32_t __user *argp = (void __user *)arg;
346-
struct drm_buf_desc __user buf;
346+
struct drm_buf_desc buf;
347347

348348
if (copy_from_user(&b32, argp, sizeof(b32)))
349349
return -EFAULT;
@@ -870,7 +870,7 @@ static int compat_drm_mode_addfb2(struct file *file, unsigned int cmd,
870870
unsigned long arg)
871871
{
872872
struct drm_mode_fb_cmd232 __user *argp = (void __user *)arg;
873-
struct drm_mode_fb_cmd2 __user req64;
873+
struct drm_mode_fb_cmd2 req64;
874874
int err;
875875

876876
if (copy_from_user(&req64, argp,

‎drivers/gpu/drm/mga/mga_ioc32.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static int compat_mga_dma_bootstrap(struct file *file, unsigned int cmd,
115115
unsigned long arg)
116116
{
117117
drm_mga_dma_bootstrap32_t dma_bootstrap32;
118-
drm_mga_dma_bootstrap_t __user dma_bootstrap;
118+
drm_mga_dma_bootstrap_t dma_bootstrap;
119119
int err;
120120

121121
if (copy_from_user(&dma_bootstrap32, (void __user *)arg,

0 commit comments

Comments
 (0)