aboutsummaryrefslogtreecommitdiffstats
path: root/ioctl.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-06-03 16:52:05 +0200
committerDavid Sterba <dsterba@suse.cz>2015-06-03 19:33:44 +0200
commit3e35646453957ef38e55e4933ca87bcdc59848fb (patch)
treea50cb1992a1fd3925a6fe8057d4893138fb5c252 /ioctl.h
parentb648021e0674f97b958d6ea385c85a135afc1fd9 (diff)
downloadbtrfs-progs-3e35646453957ef38e55e4933ca87bcdc59848fb.tar.gz
btrfs-progs-3e35646453957ef38e55e4933ca87bcdc59848fb.tar.xz
btrfs-progs-3e35646453957ef38e55e4933ca87bcdc59848fb.zip
btrfs-progs: ioctl.h: update type annotations
Add the __user annotations to pointers in structures. Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'ioctl.h')
-rw-r--r--ioctl.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/ioctl.h b/ioctl.h
index 089789e..0ef0602 100644
--- a/ioctl.h
+++ b/ioctl.h
@@ -27,6 +27,10 @@
extern "C" {
#endif
+#ifndef __user
+#define __user
+#endif
+
#define BTRFS_IOCTL_MAGIC 0x94
#define BTRFS_VOL_NAME_MAX 255
@@ -77,7 +81,7 @@ struct btrfs_ioctl_vol_args_v2 {
union {
struct {
__u64 size;
- struct btrfs_qgroup_inherit *qgroup_inherit;
+ struct btrfs_qgroup_inherit __user *qgroup_inherit;
};
__u64 unused[4];
};
@@ -521,7 +525,7 @@ struct btrfs_ioctl_received_subvol_args {
struct btrfs_ioctl_send_args {
__s64 send_fd; /* in */
__u64 clone_sources_count; /* in */
- __u64 *clone_sources; /* in */
+ __u64 __user *clone_sources; /* in */
__u64 parent_root; /* in */
__u64 flags; /* in */
__u64 reserved[4]; /* in */