aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ioctl.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2011-10-18 10:59:51 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-10-18 10:59:51 -0400
commite6705f7c255d1ffae7cd161d0b657296f4dd62fd (patch)
tree3c604c5c4b5221f794714aa9c8e926726bbb8c6e /fs/ext4/ioctl.c
parente0cbee3e14195ef07b8ab6ff30930fb93d2e510a (diff)
ext4: add __user decoration to calls of copy_{from,to}_user()
This quiets the sparse noise: warning: incorrect type in argument 2 (different address spaces) expected void const [noderef] <asn:1>*from got struct fstrim_range *<noident> warning: incorrect type in argument 1 (different address spaces) expected void [noderef] <asn:1>*to got struct fstrim_range *<noident> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ioctl.c')
-rw-r--r--fs/ext4/ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c
index 8f7ea6905421..a56796814d6a 100644
--- a/fs/ext4/ioctl.c
+++ b/fs/ext4/ioctl.c
@@ -350,7 +350,7 @@ mext_out:
350 return -EOPNOTSUPP; 350 return -EOPNOTSUPP;
351 } 351 }
352 352
353 if (copy_from_user(&range, (struct fstrim_range *)arg, 353 if (copy_from_user(&range, (struct fstrim_range __user *)arg,
354 sizeof(range))) 354 sizeof(range)))
355 return -EFAULT; 355 return -EFAULT;
356 356
@@ -360,7 +360,7 @@ mext_out:
360 if (ret < 0) 360 if (ret < 0)
361 return ret; 361 return ret;
362 362
363 if (copy_to_user((struct fstrim_range *)arg, &range, 363 if (copy_to_user((struct fstrim_range __user *)arg, &range,
364 sizeof(range))) 364 sizeof(range)))
365 return -EFAULT; 365 return -EFAULT;
366 366